home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: dvidoc.shar1
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Texinfo Document (document/texInfo)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| POSIX shell script text executable
| default
| |
99%
| file
| TeX document textAlgol 68 source text
| default
| |
98%
| file
| Pascal source text
| default
| |
97%
| file
| a /bin/sh script, ASCII text executable
| default (weak)
| |
89%
| TrID
| shar SHell self-extracting aRchive
| default
| |
10%
| TrID
| Perl script
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| gt2
| Shell Skript: '/bin/sh'
| default (weak)
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| binwalkID
| Executable script, shebang: "/bin/sh"
| default (weak)
| |
100%
| xdgMime
| application/x-shellscript
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|00000010| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000020| 68 69 76 65 2c 20 6d 65 | 61 6e 69 6e 67 3a 0a 23 |hive, me|aning:.#|
|00000030| 20 31 2e 20 52 65 6d 6f | 76 65 20 65 76 65 72 79 | 1. Remo|ve every|
|00000040| 74 68 69 6e 67 20 61 62 | 6f 76 65 20 74 68 65 20 |thing ab|ove the |
|00000050| 23 21 20 2f 62 69 6e 2f | 73 68 20 6c 69 6e 65 2e |#! /bin/|sh line.|
|00000060| 0a 23 20 32 2e 20 53 61 | 76 65 20 74 68 65 20 72 |.# 2. Sa|ve the r|
|00000070| 65 73 75 6c 74 69 6e 67 | 20 74 65 78 74 20 69 6e |esulting| text in|
|00000080| 20 61 20 66 69 6c 65 2e | 0a 23 20 33 2e 20 45 78 | a file.|.# 3. Ex|
|00000090| 65 63 75 74 65 20 74 68 | 65 20 66 69 6c 65 20 77 |ecute th|e file w|
|000000a0| 69 74 68 20 2f 62 69 6e | 2f 73 68 20 28 6e 6f 74 |ith /bin|/sh (not|
|000000b0| 20 63 73 68 29 20 74 6f | 20 63 72 65 61 74 65 3a | csh) to| create:|
|000000c0| 0a 23 09 64 76 69 64 6f | 63 2e 77 65 62 0a 23 20 |.#.dvido|c.web.# |
|000000d0| 54 68 69 73 20 61 72 63 | 68 69 76 65 20 63 72 65 |This arc|hive cre|
|000000e0| 61 74 65 64 3a 20 4d 6f | 6e 20 4a 75 6c 20 31 33 |ated: Mo|n Jul 13|
|000000f0| 20 32 32 3a 31 32 3a 34 | 32 20 31 39 38 37 0a 23 | 22:12:4|2 1987.#|
|00000100| 20 42 79 3a 09 4b 65 6e | 20 59 61 70 20 28 29 0a | By:.Ken| Yap ().|
|00000110| 65 78 70 6f 72 74 20 50 | 41 54 48 3b 20 50 41 54 |export P|ATH; PAT|
|00000120| 48 3d 2f 62 69 6e 3a 2f | 75 73 72 2f 62 69 6e 3a |H=/bin:/|usr/bin:|
|00000130| 24 50 41 54 48 0a 65 63 | 68 6f 20 73 68 61 72 3a |$PATH.ec|ho shar:|
|00000140| 20 22 65 78 74 72 61 63 | 74 69 6e 67 20 27 64 76 | "extrac|ting 'dv|
|00000150| 69 64 6f 63 2e 77 65 62 | 27 22 20 27 28 39 30 34 |idoc.web|'" '(904|
|00000160| 32 31 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |21 chara|cters)'.|
|00000170| 69 66 20 74 65 73 74 20 | 2d 66 20 27 64 76 69 64 |if test |-f 'dvid|
|00000180| 6f 63 2e 77 65 62 27 0a | 74 68 65 6e 0a 09 65 63 |oc.web'.|then..ec|
|00000190| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|000001a0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|000001b0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 64 76 69 |isting f|ile 'dvi|
|000001c0| 64 6f 63 2e 77 65 62 27 | 22 0a 65 6c 73 65 0a 63 |doc.web'|".else.c|
|000001d0| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|000001e0| 3e 20 27 64 76 69 64 6f | 63 2e 77 65 62 27 0a 25 |> 'dvido|c.web'.%|
|000001f0| 20 54 68 69 73 20 69 73 | 20 44 56 49 44 4f 43 2c | This is| DVIDOC,|
|00000200| 20 61 20 54 65 58 20 64 | 65 76 69 63 65 20 64 72 | a TeX d|evice dr|
|00000210| 69 76 65 72 20 66 6f 72 | 20 74 65 78 74 20 66 69 |iver for| text fi|
|00000220| 6c 65 73 2e 20 20 49 74 | 20 77 61 73 20 77 72 69 |les. It| was wri|
|00000230| 74 74 65 6e 0a 25 20 61 | 74 20 4f 53 55 20 69 6e |tten.% a|t OSU in|
|00000240| 20 41 70 72 69 6c 2c 20 | 31 39 38 33 2c 20 62 79 | April, |1983, by|
|00000250| 20 6d 6f 64 69 66 79 69 | 6e 67 20 74 68 65 20 54 | modifyi|ng the T|
|00000260| 65 58 20 75 74 69 6c 69 | 74 79 20 44 56 49 74 79 |eX utili|ty DVIty|
|00000270| 70 65 2e 0a 25 20 4d 6f | 64 69 66 69 65 64 20 74 |pe..% Mo|dified t|
|00000280| 6f 20 77 6f 72 6b 20 75 | 6e 64 65 72 20 34 2e 33 |o work u|nder 4.3|
|00000290| 20 42 53 44 20 62 79 20 | 4b 65 6e 20 59 61 70 20 | BSD by |Ken Yap |
|000002a0| 28 6b 65 6e 40 40 63 73 | 2e 72 6f 63 68 65 73 74 |(ken@@cs|.rochest|
|000002b0| 65 72 2e 65 64 75 29 0a | 0a 25 20 48 65 72 65 20 |er.edu).|.% Here |
|000002c0| 69 73 20 54 65 58 20 6d | 61 74 65 72 69 61 6c 20 |is TeX m|aterial |
|000002d0| 74 68 61 74 20 67 65 74 | 73 20 69 6e 73 65 72 74 |that get|s insert|
|000002e0| 65 64 20 61 66 74 65 72 | 20 5c 69 6e 70 75 74 20 |ed after| \input |
|000002f0| 77 65 62 6d 61 63 0a 5c | 64 65 66 5c 68 61 6e 67 |webmac.\|def\hang|
|00000300| 7b 5c 68 61 6e 67 69 6e | 64 65 6e 74 20 33 65 6d |{\hangin|dent 3em|
|00000310| 5c 69 6e 64 65 6e 74 5c | 69 67 6e 6f 72 65 73 70 |\indent\|ignoresp|
|00000320| 61 63 65 73 7d 0a 5c 66 | 6f 6e 74 5c 6e 69 6e 65 |aces}.\f|ont\nine|
|00000330| 72 6d 3d 63 6d 72 39 0a | 5c 6c 65 74 5c 6d 63 3d |rm=cmr9.|\let\mc=|
|00000340| 5c 6e 69 6e 65 72 6d 20 | 25 20 6d 65 64 69 75 6d |\ninerm |% medium|
|00000350| 20 63 61 70 73 20 66 6f | 72 20 6e 61 6d 65 73 20 | caps fo|r names |
|00000360| 6c 69 6b 65 20 53 41 49 | 4c 0a 5c 64 65 66 5c 50 |like SAI|L.\def\P|
|00000370| 41 53 43 41 4c 7b 50 61 | 73 63 61 6c 7d 0a 0a 5c |ASCAL{Pa|scal}..\|
|00000380| 64 65 66 5c 28 23 31 29 | 7b 7d 20 25 20 74 68 69 |def\(#1)|{} % thi|
|00000390| 73 20 69 73 20 75 73 65 | 64 20 74 6f 20 6d 61 6b |s is use|d to mak|
|000003a0| 65 20 73 65 63 74 69 6f | 6e 20 6e 61 6d 65 73 20 |e sectio|n names |
|000003b0| 73 6f 72 74 20 74 68 65 | 6d 73 65 6c 76 65 73 20 |sort the|mselves |
|000003c0| 62 65 74 74 65 72 0a 5c | 64 65 66 5c 39 23 31 7b |better.\|def\9#1{|
|000003d0| 7d 20 25 20 74 68 69 73 | 20 69 73 20 75 73 65 64 |} % this| is used|
|000003e0| 20 66 6f 72 20 73 6f 72 | 74 20 6b 65 79 73 20 69 | for sor|t keys i|
|000003f0| 6e 20 74 68 65 20 69 6e | 64 65 78 0a 0a 5c 64 65 |n the in|dex..\de|
|00000400| 66 5c 74 69 74 6c 65 7b | 44 56 49 44 4f 43 7d 0a |f\title{|DVIDOC}.|
|00000410| 5c 64 65 66 5c 63 6f 6e | 74 65 6e 74 73 70 61 67 |\def\con|tentspag|
|00000420| 65 6e 75 6d 62 65 72 7b | 31 7d 0a 5c 64 65 66 5c |enumber{|1}.\def\|
|00000430| 74 6f 70 6f 66 63 6f 6e | 74 65 6e 74 73 7b 5c 6e |topofcon|tents{\n|
|00000440| 75 6c 6c 0a 20 20 5c 64 | 65 66 5c 74 69 74 6c 65 |ull. \d|ef\title|
|00000450| 70 61 67 65 7b 46 7d 20 | 25 20 69 6e 63 6c 75 64 |page{F} |% includ|
|00000460| 65 20 68 65 61 64 6c 69 | 6e 65 20 6f 6e 20 74 68 |e headli|ne on th|
|00000470| 65 20 63 6f 6e 74 65 6e | 74 73 20 70 61 67 65 0a |e conten|ts page.|
|00000480| 20 20 5c 64 65 66 5c 72 | 68 65 61 64 65 72 7b 5c | \def\r|header{\|
|00000490| 6d 61 69 6e 66 6f 6e 74 | 5c 68 66 69 6c 20 5c 63 |mainfont|\hfil \c|
|000004a0| 6f 6e 74 65 6e 74 73 70 | 61 67 65 6e 75 6d 62 65 |ontentsp|agenumbe|
|000004b0| 72 7d 0a 20 20 5c 76 66 | 69 6c 6c 0a 20 20 5c 63 |r}. \vf|ill. \c|
|000004c0| 65 6e 74 65 72 6c 69 6e | 65 7b 5c 74 69 74 6c 65 |enterlin|e{\title|
|000004d0| 66 6f 6e 74 20 54 68 65 | 20 7b 5c 74 74 69 74 6c |font The| {\ttitl|
|000004e0| 65 66 6f 6e 74 20 44 56 | 49 44 4f 43 7d 20 70 72 |efont DV|IDOC} pr|
|000004f0| 6f 63 65 73 73 6f 72 7d | 0a 20 20 5c 76 73 6b 69 |ocessor}|. \vski|
|00000500| 70 20 31 35 70 74 0a 20 | 20 5c 63 65 6e 74 65 72 |p 15pt. | \center|
|00000510| 6c 69 6e 65 7b 28 56 65 | 72 73 69 6f 6e 20 32 2c |line{(Ve|rsion 2,|
|00000520| 20 4a 75 6c 79 20 31 39 | 38 37 29 7d 0a 20 20 5c | July 19|87)}. \|
|00000530| 76 66 69 6c 6c 7d 0a 5c | 64 65 66 5c 62 6f 74 6f |vfill}.\|def\boto|
|00000540| 66 63 6f 6e 74 65 6e 74 | 73 7b 5c 76 66 69 6c 6c |fcontent|s{\vfill|
|00000550| 0a 20 20 5c 63 65 6e 74 | 65 72 6c 69 6e 65 7b 5c |. \cent|erline{\|
|00000560| 68 73 69 7a 65 20 35 69 | 6e 5c 62 61 73 65 6c 69 |hsize 5i|n\baseli|
|00000570| 6e 65 73 6b 69 70 39 70 | 74 0a 20 20 20 20 5c 76 |neskip9p|t. \v|
|00000580| 62 6f 78 7b 5c 6e 69 6e | 65 72 6d 5c 6e 6f 69 6e |box{\nin|erm\noin|
|00000590| 64 65 6e 74 0a 20 20 20 | 60 5c 54 65 58 27 20 69 |dent. |`\TeX' i|
|000005a0| 73 20 61 0a 20 20 20 20 | 74 72 61 64 65 6d 61 72 |s a. |trademar|
|000005b0| 6b 20 6f 66 20 74 68 65 | 20 41 6d 65 72 69 63 61 |k of the| America|
|000005c0| 6e 20 4d 61 74 68 65 6d | 61 74 69 63 61 6c 20 53 |n Mathem|atical S|
|000005d0| 6f 63 69 65 74 79 2e 7d | 7d 7d 0a 5c 70 61 67 65 |ociety.}|}}.\page|
|000005e0| 6e 6f 3d 5c 63 6f 6e 74 | 65 6e 74 73 70 61 67 65 |no=\cont|entspage|
|000005f0| 6e 75 6d 62 65 72 20 5c | 61 64 76 61 6e 63 65 5c |number \|advance\|
|00000600| 70 61 67 65 6e 6f 20 62 | 79 20 31 0a 0a 40 2a 20 |pageno b|y 1..@* |
|00000610| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 2e 0a 54 68 |Introduc|tion..Th|
|00000620| 65 20 5c 2e 7b 44 56 49 | 44 4f 43 7d 20 75 74 69 |e \.{DVI|DOC} uti|
|00000630| 6c 69 74 79 20 70 72 6f | 67 72 61 6d 20 72 65 61 |lity pro|gram rea|
|00000640| 64 73 20 62 69 6e 61 72 | 79 20 64 65 76 69 63 65 |ds binar|y device|
|00000650| 2d 69 6e 64 65 70 65 6e | 64 65 6e 74 20 28 60 60 |-indepen|dent (``|
|00000660| 5c 2e 7b 44 56 49 7d 27 | 27 29 0a 66 69 6c 65 73 |\.{DVI}'|').files|
|00000670| 20 74 68 61 74 20 61 72 | 65 20 70 72 6f 64 75 63 | that ar|e produc|
|00000680| 65 64 20 62 79 20 64 6f | 63 75 6d 65 6e 74 20 63 |ed by do|cument c|
|00000690| 6f 6d 70 69 6c 65 72 73 | 20 73 75 63 68 20 61 73 |ompilers| such as|
|000006a0| 20 5c 54 65 58 2c 20 61 | 6e 64 20 0a 61 70 70 72 | \TeX, a|nd .appr|
|000006b0| 6f 78 69 6d 61 74 65 73 | 20 74 68 65 20 69 6e 74 |oximates| the int|
|000006c0| 65 6e 64 65 64 20 64 6f | 63 75 6d 65 6e 74 20 61 |ended do|cument a|
|000006d0| 73 20 61 20 74 65 78 74 | 20 66 69 6c 65 20 73 75 |s a text| file su|
|000006e0| 69 74 61 62 6c 65 20 66 | 6f 72 20 74 79 70 69 6e |itable f|or typin|
|000006f0| 67 20 61 74 0a 61 20 74 | 65 72 6d 69 6e 61 6c 20 |g at.a t|erminal |
|00000700| 6f 72 20 6f 6e 20 61 20 | 6c 69 6e 65 20 70 72 69 |or on a |line pri|
|00000710| 6e 74 65 72 2e 0a 0a 54 | 68 69 73 20 70 72 6f 67 |nter...T|his prog|
|00000720| 72 61 6d 20 69 73 20 62 | 61 73 65 64 20 6f 6e 20 |ram is b|ased on |
|00000730| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 5c 2e 7b 44 |the prog|ram \.{D|
|00000740| 56 49 74 79 70 65 7d 2c | 20 77 68 69 63 68 20 77 |VItype},| which w|
|00000750| 61 73 20 77 72 69 74 74 | 65 6e 20 62 79 0a 44 6f |as writt|en by.Do|
|00000760| 6e 61 6c 64 20 4b 6e 75 | 74 68 20 61 6e 64 20 44 |nald Knu|th and D|
|00000770| 61 76 69 64 20 46 75 63 | 68 73 2e 0a 49 74 20 63 |avid Fuc|hs..It c|
|00000780| 6f 6e 74 61 69 6e 65 64 | 20 61 20 67 72 65 61 74 |ontained| a great|
|00000790| 20 64 65 61 6c 20 6f 66 | 20 63 6f 64 65 20 63 68 | deal of| code ch|
|000007a0| 65 63 6b 69 6e 67 20 66 | 6f 72 20 6d 61 6c 66 6f |ecking f|or malfo|
|000007b0| 72 6d 65 64 20 5c 2e 7b | 44 56 49 7d 0a 66 69 6c |rmed \.{|DVI}.fil|
|000007c0| 65 73 2e 20 20 4d 6f 73 | 74 20 6f 66 20 74 68 61 |es. Mos|t of tha|
|000007d0| 74 20 63 6f 64 65 20 72 | 65 6d 61 69 6e 73 20 69 |t code r|emains i|
|000007e0| 6e 20 5c 2e 7b 44 56 49 | 44 4f 43 7d 2c 20 6e 6f |n \.{DVI|DOC}, no|
|000007f0| 74 20 62 65 63 61 75 73 | 65 20 69 74 20 69 73 0a |t becaus|e it is.|
|00000800| 69 6d 70 6f 72 74 61 6e | 74 20 28 77 65 20 74 72 |importan|t (we tr|
|00000810| 75 73 74 20 5c 54 65 58 | 29 20 74 6f 20 70 72 6f |ust \TeX|) to pro|
|00000820| 64 75 63 65 20 63 6f 72 | 72 65 63 74 20 5c 2e 7b |duce cor|rect \.{|
|00000830| 44 56 49 7d 20 66 69 6c | 65 73 29 2c 20 62 75 74 |DVI} fil|es), but|
|00000840| 0a 62 65 63 61 75 73 65 | 20 69 73 20 77 61 73 20 |.because| is was |
|00000850| 65 61 73 69 65 72 20 6e | 6f 74 20 74 6f 20 64 69 |easier n|ot to di|
|00000860| 73 74 75 72 62 20 74 68 | 65 20 6c 6f 67 69 63 20 |sturb th|e logic |
|00000870| 69 6e 20 6d 6f 64 69 66 | 79 69 6e 67 0a 5c 2e 7b |in modif|ying.\.{|
|00000880| 44 56 49 74 79 70 65 7d | 20 74 6f 20 70 72 6f 64 |DVItype}| to prod|
|00000890| 75 63 65 20 5c 2e 7b 44 | 56 49 44 4f 43 7d 2e 0a |uce \.{D|VIDOC}..|
|000008a0| 0a 54 68 65 20 7c 62 61 | 6e 6e 65 72 7c 20 73 74 |.The |ba|nner| st|
|000008b0| 72 69 6e 67 20 64 65 66 | 69 6e 65 64 20 68 65 72 |ring def|ined her|
|000008c0| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 63 68 61 6e |e should| be chan|
|000008d0| 67 65 64 20 77 68 65 6e | 65 76 65 72 20 5c 2e 7b |ged when|ever \.{|
|000008e0| 44 56 49 44 4f 43 7d 0a | 67 65 74 73 20 6d 6f 64 |DVIDOC}.|gets mod|
|000008f0| 69 66 69 65 64 2e 0a 0a | 40 64 20 62 61 6e 6e 65 |ified...|@d banne|
|00000900| 72 3d 3d 27 54 68 69 73 | 20 69 73 20 44 56 49 44 |r=='This| is DVID|
|00000910| 4f 43 2c 20 56 65 72 73 | 69 6f 6e 20 32 20 66 6f |OC, Vers|ion 2 fo|
|00000920| 72 20 34 2e 33 20 42 53 | 44 27 20 7b 70 72 69 6e |r 4.3 BS|D' {prin|
|00000930| 74 65 64 20 77 68 65 6e | 20 74 68 65 20 70 72 6f |ted when| the pro|
|00000940| 67 72 61 6d 20 73 74 61 | 72 74 73 7d 0a 0a 40 20 |gram sta|rts}..@ |
|00000950| 54 68 69 73 20 70 72 6f | 67 72 61 6d 20 69 73 20 |This pro|gram is |
|00000960| 77 72 69 74 74 65 6e 20 | 69 6e 20 73 74 61 6e 64 |written |in stand|
|00000970| 61 72 64 20 5c 50 41 53 | 43 41 4c 2c 20 65 78 63 |ard \PAS|CAL, exc|
|00000980| 65 70 74 20 77 68 65 72 | 65 20 69 74 20 69 73 20 |ept wher|e it is |
|00000990| 6e 65 63 65 73 73 61 72 | 79 0a 74 6f 20 75 73 65 |necessar|y.to use|
|000009a0| 20 65 78 74 65 6e 73 69 | 6f 6e 73 3b 20 66 6f 72 | extensi|ons; for|
|000009b0| 20 65 78 61 6d 70 6c 65 | 2c 20 5c 2e 7b 44 56 49 | example|, \.{DVI|
|000009c0| 44 4f 43 7d 20 6d 75 73 | 74 20 72 65 61 64 20 66 |DOC} mus|t read f|
|000009d0| 69 6c 65 73 20 77 68 6f | 73 65 20 6e 61 6d 65 73 |iles who|se names|
|000009e0| 0a 61 72 65 20 64 79 6e | 61 6d 69 63 61 6c 6c 79 |.are dyn|amically|
|000009f0| 20 73 70 65 63 69 66 69 | 65 64 2c 20 61 6e 64 20 | specifi|ed, and |
|00000a00| 74 68 61 74 20 77 6f 75 | 6c 64 20 62 65 20 69 6d |that wou|ld be im|
|00000a10| 70 6f 73 73 69 62 6c 65 | 20 69 6e 20 70 75 72 65 |possible| in pure|
|00000a20| 20 5c 50 41 53 43 41 4c | 2e 0a 41 6c 6c 20 70 6c | \PASCAL|..All pl|
|00000a30| 61 63 65 73 20 77 68 65 | 72 65 20 6e 6f 6e 73 74 |aces whe|re nonst|
|00000a40| 61 6e 64 61 72 64 20 63 | 6f 6e 73 74 72 75 63 74 |andard c|onstruct|
|00000a50| 69 6f 6e 73 20 61 72 65 | 20 75 73 65 64 20 68 61 |ions are| used ha|
|00000a60| 76 65 20 62 65 65 6e 20 | 6c 69 73 74 65 64 20 69 |ve been |listed i|
|00000a70| 6e 0a 74 68 65 20 69 6e | 64 65 78 20 75 6e 64 65 |n.the in|dex unde|
|00000a80| 72 20 60 60 73 79 73 74 | 65 6d 20 64 65 70 65 6e |r ``syst|em depen|
|00000a90| 64 65 6e 63 69 65 73 2e | 27 27 0a 40 21 40 5e 73 |dencies.|''.@!@^s|
|00000aa0| 79 73 74 65 6d 20 64 65 | 70 65 6e 64 65 6e 63 69 |ystem de|pendenci|
|00000ab0| 65 73 40 3e 0a 0a 4f 6e | 65 20 6f 66 20 74 68 65 |es@>..On|e of the|
|00000ac0| 20 65 78 74 65 6e 73 69 | 6f 6e 73 20 74 6f 20 73 | extensi|ons to s|
|00000ad0| 74 61 6e 64 61 72 64 20 | 5c 50 41 53 43 41 4c 5c |tandard |\PASCAL\|
|00000ae0| 20 74 68 61 74 20 77 65 | 20 73 68 61 6c 6c 20 64 | that we| shall d|
|00000af0| 65 61 6c 20 77 69 74 68 | 20 69 73 20 74 68 65 0a |eal with| is the.|
|00000b00| 61 62 69 6c 69 74 79 20 | 74 6f 20 6d 6f 76 65 20 |ability |to move |
|00000b10| 74 6f 20 61 20 72 61 6e | 64 6f 6d 20 70 6c 61 63 |to a ran|dom plac|
|00000b20| 65 20 69 6e 20 61 20 62 | 69 6e 61 72 79 20 66 69 |e in a b|inary fi|
|00000b30| 6c 65 2e 0a 0a 41 6e 6f | 74 68 65 72 20 65 78 74 |le...Ano|ther ext|
|00000b40| 65 6e 73 69 6f 6e 20 69 | 73 20 74 6f 20 75 73 65 |ension i|s to use|
|00000b50| 20 61 20 64 65 66 61 75 | 6c 74 20 7c 63 61 73 65 | a defau|lt |case|
|00000b60| 7c 20 61 73 20 69 6e 20 | 5c 2e 7b 54 41 4e 47 4c || as in |\.{TANGL|
|00000b70| 45 7d 2c 20 5c 2e 7b 57 | 45 41 56 45 7d 2c 0a 65 |E}, \.{W|EAVE},.e|
|00000b80| 74 63 2e 0a 0a 40 64 20 | 6f 74 68 65 72 63 61 73 |tc...@d |othercas|
|00000b90| 65 73 20 3d 3d 20 6f 74 | 68 65 72 73 3a 20 7b 64 |es == ot|hers: {d|
|00000ba0| 65 66 61 75 6c 74 20 66 | 6f 72 20 63 61 73 65 73 |efault f|or cases|
|00000bb0| 20 6e 6f 74 20 6c 69 73 | 74 65 64 20 65 78 70 6c | not lis|ted expl|
|00000bc0| 69 63 69 74 6c 79 7d 0a | 40 64 20 65 6e 64 63 61 |icitly}.|@d endca|
|00000bd0| 73 65 73 20 3d 3d 20 40 | 2b 65 6e 64 20 7b 66 6f |ses == @|+end {fo|
|00000be0| 6c 6c 6f 77 73 20 74 68 | 65 20 64 65 66 61 75 6c |llows th|e defaul|
|00000bf0| 74 20 63 61 73 65 20 69 | 6e 20 61 6e 20 65 78 74 |t case i|n an ext|
|00000c00| 65 6e 64 65 64 20 7c 63 | 61 73 65 7c 20 73 74 61 |ended |c|ase| sta|
|00000c10| 74 65 6d 65 6e 74 7d 0a | 40 66 20 6f 74 68 65 72 |tement}.|@f other|
|00000c20| 63 61 73 65 73 20 3d 3d | 20 65 6c 73 65 0a 40 66 |cases ==| else.@f|
|00000c30| 20 65 6e 64 63 61 73 65 | 73 20 3d 3d 20 65 6e 64 | endcase|s == end|
|00000c40| 0a 0a 40 20 54 68 65 20 | 62 69 6e 61 72 79 20 69 |..@ The |binary i|
|00000c50| 6e 70 75 74 20 63 6f 6d | 65 73 20 66 72 6f 6d 20 |nput com|es from |
|00000c60| 7c 64 76 69 5f 66 69 6c | 65 7c 2c 20 61 6e 64 20 ||dvi_fil|e|, and |
|00000c70| 74 68 65 20 73 79 6d 62 | 6f 6c 69 63 20 6f 75 74 |the symb|olic out|
|00000c80| 70 75 74 20 69 73 20 77 | 72 69 74 74 65 6e 0a 74 |put is w|ritten.t|
|00000c90| 6f 20 73 74 64 6f 75 74 | 2e 20 54 68 65 20 74 65 |o stdout|. The te|
|00000ca0| 72 6d 20 7c 70 72 69 6e | 74 7c 20 69 73 20 75 73 |rm |prin|t| is us|
|00000cb0| 65 64 20 69 6e 73 74 65 | 61 64 20 6f 66 0a 7c 77 |ed inste|ad of.|w|
|00000cc0| 72 69 74 65 7c 20 77 68 | 65 6e 20 74 68 69 73 20 |rite| wh|en this |
|00000cd0| 70 72 6f 67 72 61 6d 20 | 77 72 69 74 65 73 20 6f |program |writes o|
|00000ce0| 6e 20 7c 65 72 72 5f 66 | 69 6c 65 7c 2c 20 73 6f |n |err_f|ile|, so|
|00000cf0| 20 74 68 61 74 20 61 6c | 6c 20 73 75 63 68 20 6f | that al|l such o|
|00000d00| 75 74 70 75 74 0a 63 6f | 75 6c 64 20 65 61 73 69 |utput.co|uld easi|
|00000d10| 6c 79 20 62 65 20 72 65 | 64 69 72 65 63 74 65 64 |ly be re|directed|
|00000d20| 20 69 66 20 64 65 73 69 | 72 65 64 2e 0a 0a 40 64 | if desi|red...@d|
|00000d30| 20 70 72 69 6e 74 28 23 | 29 3d 3d 77 72 69 74 65 | print(#|)==write|
|00000d40| 28 65 72 72 5f 66 69 6c | 65 2c 23 29 0a 40 64 20 |(err_fil|e,#).@d |
|00000d50| 70 72 69 6e 74 5f 6c 6e | 28 23 29 3d 3d 77 72 69 |print_ln|(#)==wri|
|00000d60| 74 65 5f 6c 6e 28 65 72 | 72 5f 66 69 6c 65 2c 23 |te_ln(er|r_file,#|
|00000d70| 29 0a 40 64 20 65 72 72 | 6f 72 28 23 29 3d 3d 70 |).@d err|or(#)==p|
|00000d80| 72 69 6e 74 5f 6c 6e 28 | 23 29 0a 0a 40 64 20 64 |rint_ln(|#)..@d d|
|00000d90| 6f 63 5f 66 69 6c 65 3d | 3d 6f 75 74 70 75 74 0a |oc_file=|=output.|
|00000da0| 0a 40 64 20 65 6f 66 28 | 23 29 3d 3d 65 6f 66 5f |.@d eof(|#)==eof_|
|00000db0| 64 76 69 5f 66 69 6c 65 | 0a 0a 40 70 20 70 72 6f |dvi_file|..@p pro|
|00000dc0| 67 72 61 6d 20 44 56 49 | 44 4f 43 28 69 6e 70 75 |gram DVI|DOC(inpu|
|00000dd0| 74 2c 20 6f 75 74 70 75 | 74 2c 20 40 21 64 76 69 |t, outpu|t, @!dvi|
|00000de0| 5f 66 69 6c 65 2c 40 21 | 65 72 72 5f 66 69 6c 65 |_file,@!|err_file|
|00000df0| 29 3b 0a 6c 61 62 65 6c | 20 40 3c 4c 61 62 65 6c |);.label| @<Label|
|00000e00| 73 20 69 6e 20 74 68 65 | 20 6f 75 74 65 72 20 62 |s in the| outer b|
|00000e10| 6c 6f 63 6b 40 3e 40 2f | 0a 63 6f 6e 73 74 20 40 |lock@>@/|.const @|
|00000e20| 3c 43 6f 6e 73 74 61 6e | 74 73 20 69 6e 20 74 68 |<Constan|ts in th|
|00000e30| 65 20 6f 75 74 65 72 20 | 62 6c 6f 63 6b 40 3e 40 |e outer |block@>@|
|00000e40| 2f 0a 74 79 70 65 20 40 | 3c 54 79 70 65 73 20 69 |/.type @|<Types i|
|00000e50| 6e 20 74 68 65 20 6f 75 | 74 65 72 20 62 6c 6f 63 |n the ou|ter bloc|
|00000e60| 6b 40 3e 40 2f 0a 76 61 | 72 40 3f 40 3c 47 6c 6f |k@>@/.va|r@?@<Glo|
|00000e70| 62 61 6c 73 20 69 6e 20 | 74 68 65 20 6f 75 74 65 |bals in |the oute|
|00000e80| 72 20 62 6c 6f 63 6b 40 | 3e 40 2f 0a 40 5c 40 3d |r block@|>@/.@\@=|
|00000e90| 23 69 6e 63 6c 75 64 65 | 20 22 64 76 69 74 79 65 |#include| "dvitye|
|00000ea0| 78 74 2e 68 22 40 3e 40 | 5c 20 7b 64 65 63 6c 61 |xt.h"@>@|\ {decla|
|00000eb0| 72 61 74 69 6f 6e 73 20 | 66 6f 72 20 65 78 74 65 |rations |for exte|
|00000ec0| 72 6e 61 6c 20 43 20 70 | 72 6f 63 65 64 75 72 65 |rnal C p|rocedure|
|00000ed0| 73 7d 0a 70 72 6f 63 65 | 64 75 72 65 20 69 6e 69 |s}.proce|dure ini|
|00000ee0| 74 69 61 6c 69 7a 65 3b | 20 7b 74 68 69 73 20 70 |tialize;| {this p|
|00000ef0| 72 6f 63 65 64 75 72 65 | 20 67 65 74 73 20 74 68 |rocedure| gets th|
|00000f00| 69 6e 67 73 20 73 74 61 | 72 74 65 64 20 70 72 6f |ings sta|rted pro|
|00000f10| 70 65 72 6c 79 7d 0a 76 | 61 72 20 69 3a 69 6e 74 |perly}.v|ar i:int|
|00000f20| 65 67 65 72 3b 0a 20 20 | 62 65 67 69 6e 20 40 2f |eger;. |begin @/|
|00000f30| 0a 20 20 73 65 74 70 61 | 74 68 73 3b 0a 20 20 40 |. setpa|ths;. @|
|00000f40| 3c 53 65 74 20 69 6e 69 | 74 69 61 6c 20 76 61 6c |<Set ini|tial val|
|00000f50| 75 65 73 40 3e 40 2f 0a | 20 20 65 6e 64 3b 0a 0a |ues@>@/.| end;..|
|00000f60| 40 20 49 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |@ If the| program|
|00000f70| 20 68 61 73 20 74 6f 20 | 73 74 6f 70 20 70 72 65 | has to |stop pre|
|00000f80| 6d 61 74 75 72 65 6c 79 | 2c 20 69 74 20 67 6f 65 |maturely|, it goe|
|00000f90| 73 20 74 6f 20 74 68 65 | 0a 60 7c 66 69 6e 61 6c |s to the|.`|final|
|00000fa0| 5f 65 6e 64 7c 27 2e 20 | 41 6e 6f 74 68 65 72 20 |_end|'. |Another |
|00000fb0| 6c 61 62 65 6c 2c 20 7c | 64 6f 6e 65 7c 2c 20 69 |label, ||done|, i|
|00000fc0| 73 20 75 73 65 64 20 77 | 68 65 6e 20 73 74 6f 70 |s used w|hen stop|
|00000fd0| 70 69 6e 67 20 6e 6f 72 | 6d 61 6c 6c 79 2e 0a 0a |ping nor|mally...|
|00000fe0| 40 64 20 66 69 6e 61 6c | 5f 65 6e 64 3d 39 39 39 |@d final|_end=999|
|00000ff0| 39 20 7b 6c 61 62 65 6c | 20 66 6f 72 20 74 68 65 |9 {label| for the|
|00001000| 20 65 6e 64 20 6f 66 20 | 69 74 20 61 6c 6c 7d 0a | end of |it all}.|
|00001010| 40 64 20 64 6f 6e 65 3d | 33 30 20 7b 67 6f 20 68 |@d done=|30 {go h|
|00001020| 65 72 65 20 77 68 65 6e | 20 66 69 6e 69 73 68 65 |ere when| finishe|
|00001030| 64 20 77 69 74 68 20 61 | 20 73 75 62 74 61 73 6b |d with a| subtask|
|00001040| 7d 0a 0a 40 3c 4c 61 62 | 65 6c 73 2e 2e 2e 40 3e |}..@<Lab|els...@>|
|00001050| 3d 66 69 6e 61 6c 5f 65 | 6e 64 2c 64 6f 6e 65 3b |=final_e|nd,done;|
|00001060| 0a 0a 40 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |..@ The |followin|
|00001070| 67 20 70 61 72 61 6d 65 | 74 65 72 73 20 63 61 6e |g parame|ters can|
|00001080| 20 62 65 20 63 68 61 6e | 67 65 64 20 61 74 20 63 | be chan|ged at c|
|00001090| 6f 6d 70 69 6c 65 20 74 | 69 6d 65 20 74 6f 20 65 |ompile t|ime to e|
|000010a0| 78 74 65 6e 64 20 6f 72 | 0a 72 65 64 75 63 65 20 |xtend or|.reduce |
|000010b0| 5c 2e 7b 44 56 49 44 4f | 43 7d 27 73 20 63 61 70 |\.{DVIDO|C}'s cap|
|000010c0| 61 63 69 74 79 2e 0a 0a | 40 3c 43 6f 6e 73 74 61 |acity...|@<Consta|
|000010d0| 6e 74 73 2e 2e 2e 40 3e | 3d 0a 40 21 6d 61 78 5f |nts...@>|=.@!max_|
|000010e0| 66 6f 6e 74 73 3d 31 30 | 30 3b 20 7b 6d 61 78 69 |fonts=10|0; {maxi|
|000010f0| 6d 75 6d 20 6e 75 6d 62 | 65 72 20 6f 66 20 64 69 |mum numb|er of di|
|00001100| 73 74 69 6e 63 74 20 66 | 6f 6e 74 73 20 70 65 72 |stinct f|onts per|
|00001110| 20 5c 2e 7b 44 56 49 7d | 20 66 69 6c 65 7d 0a 40 | \.{DVI}| file}.@|
|00001120| 21 6d 61 78 5f 77 69 64 | 74 68 73 3d 31 30 30 30 |!max_wid|ths=1000|
|00001130| 30 3b 20 7b 6d 61 78 69 | 6d 75 6d 20 6e 75 6d 62 |0; {maxi|mum numb|
|00001140| 65 72 20 6f 66 20 64 69 | 66 66 65 72 65 6e 74 20 |er of di|fferent |
|00001150| 63 68 61 72 61 63 74 65 | 72 73 20 61 6d 6f 6e 67 |characte|rs among|
|00001160| 20 61 6c 6c 20 66 6f 6e | 74 73 7d 0a 40 21 74 65 | all fon|ts}.@!te|
|00001170| 72 6d 69 6e 61 6c 5f 6c | 69 6e 65 5f 6c 65 6e 67 |rminal_l|ine_leng|
|00001180| 74 68 3d 31 35 30 3b 20 | 7b 6d 61 78 69 6d 75 6d |th=150; |{maximum|
|00001190| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 61 | number |of chara|
|000011a0| 63 74 65 72 73 20 69 6e | 70 75 74 20 69 6e 20 61 |cters in|put in a|
|000011b0| 20 73 69 6e 67 6c 65 0a | 20 20 6c 69 6e 65 20 6f | single.| line o|
|000011c0| 66 20 69 6e 70 75 74 20 | 66 72 6f 6d 20 74 68 65 |f input |from the|
|000011d0| 20 74 65 72 6d 69 6e 61 | 6c 7d 0a 40 21 73 74 61 | termina|l}.@!sta|
|000011e0| 63 6b 5f 73 69 7a 65 3d | 31 30 30 3b 20 7b 5c 2e |ck_size=|100; {\.|
|000011f0| 7b 44 56 49 7d 20 66 69 | 6c 65 73 20 73 68 6f 75 |{DVI} fi|les shou|
|00001200| 6c 64 6e 27 74 20 7c 70 | 75 73 68 7c 20 62 65 79 |ldn't |p|ush| bey|
|00001210| 6f 6e 64 20 74 68 69 73 | 20 64 65 70 74 68 7d 0a |ond this| depth}.|
|00001220| 40 21 6e 61 6d 65 5f 73 | 69 7a 65 3d 31 30 30 30 |@!name_s|ize=1000|
|00001230| 3b 20 7b 74 6f 74 61 6c | 20 6c 65 6e 67 74 68 20 |; {total| length |
|00001240| 6f 66 20 61 6c 6c 20 66 | 6f 6e 74 20 66 69 6c 65 |of all f|ont file|
|00001250| 20 6e 61 6d 65 73 7d 0a | 40 21 6e 61 6d 65 5f 6c | names}.|@!name_l|
|00001260| 65 6e 67 74 68 3d 31 30 | 30 3b 20 7b 61 20 66 69 |ength=10|0; {a fi|
|00001270| 6c 65 20 6e 61 6d 65 20 | 73 68 6f 75 6c 64 6e 27 |le name |shouldn'|
|00001280| 74 20 62 65 20 6c 6f 6e | 67 65 72 20 74 68 61 6e |t be lon|ger than|
|00001290| 20 74 68 69 73 7d 0a 40 | 21 70 61 67 65 5f 77 69 | this}.@|!page_wi|
|000012a0| 64 74 68 5f 6d 61 78 3d | 31 33 32 3b 20 7b 6d 61 |dth_max=|132; {ma|
|000012b0| 78 69 6d 75 6d 20 6e 75 | 6d 62 65 72 20 6f 66 20 |ximum nu|mber of |
|000012c0| 63 68 61 72 61 63 74 65 | 72 73 20 70 65 72 20 6c |characte|rs per l|
|000012d0| 69 6e 65 20 69 6e 20 74 | 68 65 20 64 6f 63 75 6d |ine in t|he docum|
|000012e0| 65 6e 74 7d 0a 40 21 70 | 61 67 65 5f 6c 65 6e 67 |ent}.@!p|age_leng|
|000012f0| 74 68 5f 6d 61 78 3d 38 | 38 3b 20 7b 6d 61 78 69 |th_max=8|8; {maxi|
|00001300| 6d 75 6d 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 |mum numb|er of li|
|00001310| 6e 65 73 20 70 65 72 20 | 70 61 67 65 20 69 6e 20 |nes per |page in |
|00001320| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 7d 0a 0a 40 |the docu|ment}..@|
|00001330| 20 48 65 72 65 20 61 72 | 65 20 73 6f 6d 65 20 6d | Here ar|e some m|
|00001340| 61 63 72 6f 73 20 66 6f | 72 20 63 6f 6d 6d 6f 6e |acros fo|r common|
|00001350| 20 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 69 64 69 | program|ming idi|
|00001360| 6f 6d 73 2e 0a 0a 40 64 | 20 69 6e 63 72 28 23 29 |oms...@d| incr(#)|
|00001370| 20 3d 3d 20 23 3a 3d 23 | 2b 31 20 7b 69 6e 63 72 | == #:=#|+1 {incr|
|00001380| 65 61 73 65 20 61 20 76 | 61 72 69 61 62 6c 65 20 |ease a v|ariable |
|00001390| 62 79 20 75 6e 69 74 79 | 7d 0a 40 64 20 64 65 63 |by unity|}.@d dec|
|000013a0| 72 28 23 29 20 3d 3d 20 | 23 3a 3d 23 2d 31 20 7b |r(#) == |#:=#-1 {|
|000013b0| 64 65 63 72 65 61 73 65 | 20 61 20 76 61 72 69 61 |decrease| a varia|
|000013c0| 62 6c 65 20 62 79 20 75 | 6e 69 74 79 7d 0a 40 64 |ble by u|nity}.@d|
|000013d0| 20 64 6f 5f 6e 6f 74 68 | 69 6e 67 20 3d 3d 20 7b | do_noth|ing == {|
|000013e0| 65 6d 70 74 79 20 73 74 | 61 74 65 6d 65 6e 74 7d |empty st|atement}|
|000013f0| 0a 0a 40 20 49 66 20 74 | 68 65 20 5c 2e 7b 44 56 |..@ If t|he \.{DV|
|00001400| 49 7d 20 66 69 6c 65 20 | 69 73 20 62 61 64 6c 79 |I} file |is badly|
|00001410| 20 6d 61 6c 66 6f 72 6d | 65 64 2c 20 74 68 65 20 | malform|ed, the |
|00001420| 77 68 6f 6c 65 20 70 72 | 6f 63 65 73 73 20 6d 75 |whole pr|ocess mu|
|00001430| 73 74 20 62 65 20 61 62 | 6f 72 74 65 64 3b 0a 5c |st be ab|orted;.\|
|00001440| 2e 7b 44 56 49 44 4f 43 | 7d 20 77 69 6c 6c 20 67 |.{DVIDOC|} will g|
|00001450| 69 76 65 20 75 70 2c 20 | 61 66 74 65 72 20 69 73 |ive up, |after is|
|00001460| 73 75 69 6e 67 20 61 6e | 20 65 72 72 6f 72 20 6d |suing an| error m|
|00001470| 65 73 73 61 67 65 20 61 | 62 6f 75 74 20 74 68 65 |essage a|bout the|
|00001480| 20 73 79 6d 70 74 6f 6d | 73 0a 74 68 61 74 20 77 | symptom|s.that w|
|00001490| 65 72 65 20 6e 6f 74 69 | 63 65 64 2e 0a 0a 53 75 |ere noti|ced...Su|
|000014a0| 63 68 20 65 72 72 6f 72 | 73 20 6d 69 67 68 74 20 |ch error|s might |
|000014b0| 62 65 20 64 69 73 63 6f | 76 65 72 65 64 20 69 6e |be disco|vered in|
|000014c0| 73 69 64 65 20 6f 66 20 | 73 75 62 72 6f 75 74 69 |side of |subrouti|
|000014d0| 6e 65 73 20 69 6e 73 69 | 64 65 20 6f 66 20 73 75 |nes insi|de of su|
|000014e0| 62 72 6f 75 74 69 6e 65 | 73 2c 0a 73 6f 20 61 20 |broutine|s,.so a |
|000014f0| 70 72 6f 63 65 64 75 72 | 65 20 63 61 6c 6c 65 64 |procedur|e called|
|00001500| 20 7c 6a 75 6d 70 5f 6f | 75 74 7c 20 68 61 73 20 | |jump_o|ut| has |
|00001510| 62 65 65 6e 20 69 6e 74 | 72 6f 64 75 63 65 64 2e |been int|roduced.|
|00001520| 20 54 68 69 73 20 70 72 | 6f 63 65 64 75 72 65 2c | This pr|ocedure,|
|00001530| 20 77 68 69 63 68 0a 73 | 69 6d 70 6c 79 20 74 72 | which.s|imply tr|
|00001540| 61 6e 73 66 65 72 73 20 | 63 6f 6e 74 72 6f 6c 20 |ansfers |control |
|00001550| 74 6f 20 74 68 65 20 6c | 61 62 65 6c 20 7c 66 69 |to the l|abel |fi|
|00001560| 6e 61 6c 5f 65 6e 64 7c | 20 61 74 20 74 68 65 20 |nal_end|| at the |
|00001570| 65 6e 64 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |end of t|he progr|
|00001580| 61 6d 2c 0a 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |am,.cont|ains the|
|00001590| 20 6f 6e 6c 79 20 6e 6f | 6e 2d 6c 6f 63 61 6c 20 | only no|n-local |
|000015a0| 7c 67 6f 74 6f 7c 20 73 | 74 61 74 65 6d 65 6e 74 ||goto| s|tatement|
|000015b0| 20 69 6e 20 5c 2e 7b 44 | 56 49 44 4f 43 7d 2e 0a | in \.{D|VIDOC}..|
|000015c0| 40 5e 73 79 73 74 65 6d | 20 64 65 70 65 6e 64 65 |@^system| depende|
|000015d0| 6e 63 69 65 73 40 3e 0a | 0a 40 64 20 61 62 6f 72 |ncies@>.|.@d abor|
|000015e0| 74 28 23 29 3d 3d 62 65 | 67 69 6e 20 6d 65 73 73 |t(#)==be|gin mess|
|000015f0| 61 67 65 28 27 20 27 2c | 23 29 3b 20 6a 75 6d 70 |age(' ',|#); jump|
|00001600| 5f 6f 75 74 3b 0a 20 20 | 20 20 65 6e 64 0a 40 64 |_out;. | end.@d|
|00001610| 20 62 61 64 5f 64 76 69 | 28 23 29 3d 3d 61 62 6f | bad_dvi|(#)==abo|
|00001620| 72 74 28 27 42 61 64 20 | 44 56 49 20 66 69 6c 65 |rt('Bad |DVI file|
|00001630| 3a 20 27 2c 23 2c 27 21 | 27 29 0a 40 2e 42 61 64 |: ',#,'!|').@.Bad|
|00001640| 20 44 56 49 20 66 69 6c | 65 40 3e 0a 0a 40 70 20 | DVI fil|e@>..@p |
|00001650| 70 72 6f 63 65 64 75 72 | 65 20 6a 75 6d 70 5f 6f |procedur|e jump_o|
|00001660| 75 74 3b 0a 62 65 67 69 | 6e 20 67 6f 74 6f 20 66 |ut;.begi|n goto f|
|00001670| 69 6e 61 6c 5f 65 6e 64 | 3b 0a 65 6e 64 3b 0a 0a |inal_end|;.end;..|
|00001680| 40 20 49 66 20 74 68 65 | 20 77 72 6f 6e 67 20 6f |@ If the| wrong o|
|00001690| 70 74 69 6f 6e 73 20 68 | 61 76 65 20 62 65 65 6e |ptions h|ave been|
|000016a0| 20 67 69 76 65 6e 20 74 | 6f 20 5c 2e 7b 44 56 49 | given t|o \.{DVI|
|000016b0| 44 4f 43 7d 2c 20 77 65 | 20 70 72 69 6e 74 20 61 |DOC}, we| print a|
|000016c0| 20 72 65 6d 69 6e 64 65 | 72 0a 6d 65 73 73 61 67 | reminde|r.messag|
|000016d0| 65 20 61 6e 64 20 65 78 | 69 74 2e 0a 40 5e 73 79 |e and ex|it..@^sy|
|000016e0| 73 74 65 6d 20 64 65 70 | 65 6e 64 65 6e 63 69 65 |stem dep|endencie|
|000016f0| 73 40 3e 0a 0a 40 64 20 | 63 61 6e 6e 6f 74 5f 73 |s@>..@d |cannot_s|
|00001700| 74 61 72 74 28 23 29 3d | 3d 62 65 67 69 6e 20 6d |tart(#)=|=begin m|
|00001710| 65 73 73 61 67 65 28 23 | 29 3b 20 67 6f 74 6f 20 |essage(#|); goto |
|00001720| 64 6f 6e 65 20 65 6e 64 | 0a 0a 40 2a 20 54 68 65 |done end|..@* The|
|00001730| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 2e 0a | charact|er set..|
|00001740| 4c 69 6b 65 20 61 6c 6c | 20 70 72 6f 67 72 61 6d |Like all| program|
|00001750| 73 20 77 72 69 74 74 65 | 6e 20 77 69 74 68 20 74 |s writte|n with t|
|00001760| 68 65 20 20 5c 2e 7b 57 | 45 42 7d 20 73 79 73 74 |he \.{W|EB} syst|
|00001770| 65 6d 2c 20 5c 2e 7b 44 | 56 49 44 4f 43 7d 20 63 |em, \.{D|VIDOC} c|
|00001780| 61 6e 20 62 65 0a 75 73 | 65 64 20 77 69 74 68 20 |an be.us|ed with |
|00001790| 61 6e 79 20 63 68 61 72 | 61 63 74 65 72 20 73 65 |any char|acter se|
|000017a0| 74 2e 20 42 75 74 20 69 | 74 20 75 73 65 73 20 41 |t. But i|t uses A|
|000017b0| 53 43 49 49 20 63 6f 64 | 65 20 69 6e 74 65 72 6e |SCII cod|e intern|
|000017c0| 61 6c 6c 79 2c 20 62 65 | 63 61 75 73 65 0a 74 68 |ally, be|cause.th|
|000017d0| 65 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 66 6f |e progra|mming fo|
|000017e0| 72 20 70 6f 72 74 61 62 | 6c 65 20 69 6e 70 75 74 |r portab|le input|
|000017f0| 2d 6f 75 74 70 75 74 20 | 69 73 20 65 61 73 69 65 |-output |is easie|
|00001800| 72 20 77 68 65 6e 20 61 | 20 66 69 78 65 64 20 69 |r when a| fixed i|
|00001810| 6e 74 65 72 6e 61 6c 0a | 63 6f 64 65 20 69 73 20 |nternal.|code is |
|00001820| 75 73 65 64 2c 20 61 6e | 64 20 62 65 63 61 75 73 |used, an|d becaus|
|00001830| 65 20 5c 2e 7b 44 56 49 | 7d 20 66 69 6c 65 73 20 |e \.{DVI|} files |
|00001840| 75 73 65 20 41 53 43 49 | 49 20 63 6f 64 65 20 66 |use ASCI|I code f|
|00001850| 6f 72 20 66 69 6c 65 20 | 6e 61 6d 65 73 0a 61 6e |or file |names.an|
|00001860| 64 20 63 65 72 74 61 69 | 6e 20 6f 74 68 65 72 20 |d certai|n other |
|00001870| 73 74 72 69 6e 67 73 2e | 0a 0a 54 68 65 20 6e 65 |strings.|..The ne|
|00001880| 78 74 20 66 65 77 20 6d | 6f 64 75 6c 65 73 20 6f |xt few m|odules o|
|00001890| 66 20 5c 2e 7b 44 56 49 | 44 4f 43 7d 20 68 61 76 |f \.{DVI|DOC} hav|
|000018a0| 65 20 74 68 65 72 65 66 | 6f 72 65 20 62 65 65 6e |e theref|ore been|
|000018b0| 20 63 6f 70 69 65 64 20 | 66 72 6f 6d 20 74 68 65 | copied |from the|
|000018c0| 0a 61 6e 61 6c 6f 67 6f | 75 73 20 6f 6e 65 73 20 |.analogo|us ones |
|000018d0| 69 6e 20 74 68 65 20 5c | 2e 7b 57 45 42 7d 20 73 |in the \|.{WEB} s|
|000018e0| 79 73 74 65 6d 20 72 6f | 75 74 69 6e 65 73 2e 20 |ystem ro|utines. |
|000018f0| 54 68 65 79 20 68 61 76 | 65 20 62 65 65 6e 20 63 |They hav|e been c|
|00001900| 6f 6e 73 69 64 65 72 61 | 62 6c 79 0a 73 69 6d 70 |onsidera|bly.simp|
|00001910| 6c 69 66 69 65 64 2c 20 | 73 69 6e 63 65 20 5c 2e |lified, |since \.|
|00001920| 7b 44 56 49 44 4f 43 7d | 20 6e 65 65 64 20 6e 6f |{DVIDOC}| need no|
|00001930| 74 20 64 65 61 6c 20 77 | 69 74 68 20 74 68 65 20 |t deal w|ith the |
|00001940| 63 6f 6e 74 72 6f 76 65 | 72 73 69 61 6c 0a 41 53 |controve|rsial.AS|
|00001950| 43 49 49 20 63 6f 64 65 | 73 20 6c 65 73 73 20 74 |CII code|s less t|
|00001960| 68 61 6e 20 40 27 34 30 | 2e 20 49 66 20 73 75 63 |han @'40|. If suc|
|00001970| 68 20 63 6f 64 65 73 20 | 61 70 70 65 61 72 20 69 |h codes |appear i|
|00001980| 6e 20 74 68 65 20 5c 2e | 7b 44 56 49 7d 20 66 69 |n the \.|{DVI} fi|
|00001990| 6c 65 2c 0a 74 68 65 79 | 20 77 69 6c 6c 20 62 65 |le,.they| will be|
|000019a0| 20 70 72 69 6e 74 65 64 | 20 61 73 20 71 75 65 73 | printed| as ques|
|000019b0| 74 69 6f 6e 20 6d 61 72 | 6b 73 2e 0a 0a 40 3c 54 |tion mar|ks...@<T|
|000019c0| 79 70 65 73 2e 2e 2e 40 | 3e 3d 0a 40 21 41 53 43 |ypes...@|>=.@!ASC|
|000019d0| 49 49 5f 63 6f 64 65 3d | 22 20 22 2e 2e 22 7e 22 |II_code=|" ".."~"|
|000019e0| 3b 20 7b 61 20 73 75 62 | 72 61 6e 67 65 20 6f 66 |; {a sub|range of|
|000019f0| 20 74 68 65 20 69 6e 74 | 65 67 65 72 73 7d 0a 0a | the int|egers}..|
|00001a00| 40 20 54 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 5c |@ The or|iginal \|
|00001a10| 50 41 53 43 41 4c 5c 20 | 63 6f 6d 70 69 6c 65 72 |PASCAL\ |compiler|
|00001a20| 20 77 61 73 20 64 65 73 | 69 67 6e 65 64 20 69 6e | was des|igned in|
|00001a30| 20 74 68 65 20 6c 61 74 | 65 20 36 30 73 2c 20 77 | the lat|e 60s, w|
|00001a40| 68 65 6e 20 73 69 78 2d | 62 69 74 0a 63 68 61 72 |hen six-|bit.char|
|00001a50| 61 63 74 65 72 20 73 65 | 74 73 20 77 65 72 65 20 |acter se|ts were |
|00001a60| 63 6f 6d 6d 6f 6e 2c 20 | 73 6f 20 69 74 20 64 69 |common, |so it di|
|00001a70| 64 20 6e 6f 74 20 6d 61 | 6b 65 20 70 72 6f 76 69 |d not ma|ke provi|
|00001a80| 73 69 6f 6e 20 66 6f 72 | 20 6c 6f 77 65 72 20 63 |sion for| lower c|
|00001a90| 61 73 65 0a 6c 65 74 74 | 65 72 73 2e 20 4e 6f 77 |ase.lett|ers. Now|
|00001aa0| 61 64 61 79 73 2c 20 6f | 66 20 63 6f 75 72 73 65 |adays, o|f course|
|00001ab0| 2c 20 77 65 20 6e 65 65 | 64 20 74 6f 20 64 65 61 |, we nee|d to dea|
|00001ac0| 6c 20 77 69 74 68 20 62 | 6f 74 68 20 75 70 70 65 |l with b|oth uppe|
|00001ad0| 72 20 61 6e 64 20 6c 6f | 77 65 72 20 63 61 73 65 |r and lo|wer case|
|00001ae0| 0a 61 6c 70 68 61 62 65 | 74 73 20 69 6e 20 61 20 |.alphabe|ts in a |
|00001af0| 63 6f 6e 76 65 6e 69 65 | 6e 74 20 77 61 79 2c 20 |convenie|nt way, |
|00001b00| 65 73 70 65 63 69 61 6c | 6c 79 20 69 6e 20 61 20 |especial|ly in a |
|00001b10| 70 72 6f 67 72 61 6d 20 | 6c 69 6b 65 20 5c 2e 7b |program |like \.{|
|00001b20| 44 56 49 44 4f 43 7d 2e | 0a 53 6f 20 77 65 20 73 |DVIDOC}.|.So we s|
|00001b30| 68 61 6c 6c 20 61 73 73 | 75 6d 65 20 74 68 61 74 |hall ass|ume that|
|00001b40| 20 74 68 65 20 5c 50 41 | 53 43 41 4c 5c 20 73 79 | the \PA|SCAL\ sy|
|00001b50| 73 74 65 6d 20 62 65 69 | 6e 67 20 75 73 65 64 20 |stem bei|ng used |
|00001b60| 66 6f 72 20 5c 2e 7b 44 | 56 49 44 4f 43 7d 0a 68 |for \.{D|VIDOC}.h|
|00001b70| 61 73 20 61 20 63 68 61 | 72 61 63 74 65 72 20 73 |as a cha|racter s|
|00001b80| 65 74 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 61 74 |et conta|ining at|
|00001b90| 20 6c 65 61 73 74 20 74 | 68 65 20 73 74 61 6e 64 | least t|he stand|
|00001ba0| 61 72 64 20 76 69 73 69 | 62 6c 65 20 63 68 61 72 |ard visi|ble char|
|00001bb0| 61 63 74 65 72 73 0a 6f | 66 20 41 53 43 49 49 20 |acters.o|f ASCII |
|00001bc0| 63 6f 64 65 20 28 7c 22 | 21 22 7c 20 74 68 72 6f |code (|"|!"| thro|
|00001bd0| 75 67 68 20 7c 22 7e 22 | 7c 29 2e 0a 0a 53 6f 6d |ugh |"~"||)...Som|
|00001be0| 65 20 5c 50 41 53 43 41 | 4c 5c 20 63 6f 6d 70 69 |e \PASCA|L\ compi|
|00001bf0| 6c 65 72 73 20 75 73 65 | 20 74 68 65 20 6f 72 69 |lers use| the ori|
|00001c00| 67 69 6e 61 6c 20 6e 61 | 6d 65 20 7c 63 68 61 72 |ginal na|me |char|
|00001c10| 7c 20 66 6f 72 20 74 68 | 65 20 64 61 74 61 20 74 || for th|e data t|
|00001c20| 79 70 65 0a 61 73 73 6f | 63 69 61 74 65 64 20 77 |ype.asso|ciated w|
|00001c30| 69 74 68 20 74 68 65 20 | 63 68 61 72 61 63 74 65 |ith the |characte|
|00001c40| 72 73 20 69 6e 20 74 65 | 78 74 20 66 69 6c 65 73 |rs in te|xt files|
|00001c50| 2c 20 77 68 69 6c 65 20 | 6f 74 68 65 72 20 5c 50 |, while |other \P|
|00001c60| 41 53 43 41 4c 20 73 0a | 63 6f 6e 73 69 64 65 72 |ASCAL s.|consider|
|00001c70| 20 7c 63 68 61 72 7c 20 | 74 6f 20 62 65 20 61 20 | |char| |to be a |
|00001c80| 36 34 2d 65 6c 65 6d 65 | 6e 74 20 73 75 62 72 61 |64-eleme|nt subra|
|00001c90| 6e 67 65 20 6f 66 20 61 | 20 6c 61 72 67 65 72 20 |nge of a| larger |
|00001ca0| 64 61 74 61 20 74 79 70 | 65 20 74 68 61 74 20 68 |data typ|e that h|
|00001cb0| 61 73 0a 73 6f 6d 65 20 | 6f 74 68 65 72 20 6e 61 |as.some |other na|
|00001cc0| 6d 65 2e 20 20 49 6e 20 | 6f 72 64 65 72 20 74 6f |me. In |order to|
|00001cd0| 20 61 63 63 6f 6d 6d 6f | 64 61 74 65 20 74 68 69 | accommo|date thi|
|00001ce0| 73 20 64 69 66 66 65 72 | 65 6e 63 65 2c 20 77 65 |s differ|ence, we|
|00001cf0| 20 73 68 61 6c 6c 20 75 | 73 65 0a 74 68 65 20 6e | shall u|se.the n|
|00001d00| 61 6d 65 20 7c 74 65 78 | 74 5f 63 68 61 72 7c 20 |ame |tex|t_char| |
|00001d10| 74 6f 20 73 74 61 6e 64 | 20 66 6f 72 20 74 68 65 |to stand| for the|
|00001d20| 20 64 61 74 61 20 74 79 | 70 65 20 6f 66 20 74 68 | data ty|pe of th|
|00001d30| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 69 6e 20 |e charac|ters in |
|00001d40| 74 68 65 0a 6f 75 74 70 | 75 74 20 66 69 6c 65 2e |the.outp|ut file.|
|00001d50| 20 20 57 65 20 73 68 61 | 6c 6c 20 61 6c 73 6f 20 | We sha|ll also |
|00001d60| 61 73 73 75 6d 65 20 74 | 68 61 74 20 7c 74 65 78 |assume t|hat |tex|
|00001d70| 74 5f 63 68 61 72 7c 20 | 63 6f 6e 73 69 73 74 73 |t_char| |consists|
|00001d80| 20 6f 66 0a 74 68 65 20 | 65 6c 65 6d 65 6e 74 73 | of.the |elements|
|00001d90| 20 7c 63 68 72 28 66 69 | 72 73 74 5f 74 65 78 74 | |chr(fi|rst_text|
|00001da0| 5f 63 68 61 72 29 7c 20 | 74 68 72 6f 75 67 68 20 |_char)| |through |
|00001db0| 7c 63 68 72 28 6c 61 73 | 74 5f 74 65 78 74 5f 63 ||chr(las|t_text_c|
|00001dc0| 68 61 72 29 7c 2c 0a 69 | 6e 63 6c 75 73 69 76 65 |har)|,.i|nclusive|
|00001dd0| 2e 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |. The fo|llowing |
|00001de0| 64 65 66 69 6e 69 74 69 | 6f 6e 73 20 73 68 6f 75 |definiti|ons shou|
|00001df0| 6c 64 20 62 65 20 61 64 | 6a 75 73 74 65 64 20 69 |ld be ad|justed i|
|00001e00| 66 20 6e 65 63 65 73 73 | 61 72 79 2e 0a 40 5e 73 |f necess|ary..@^s|
|00001e10| 79 73 74 65 6d 20 64 65 | 70 65 6e 64 65 6e 63 69 |ystem de|pendenci|
|00001e20| 65 73 40 3e 0a 0a 40 64 | 20 74 65 78 74 5f 63 68 |es@>..@d| text_ch|
|00001e30| 61 72 20 3d 3d 20 63 68 | 61 72 20 7b 74 68 65 20 |ar == ch|ar {the |
|00001e40| 64 61 74 61 20 74 79 70 | 65 20 6f 66 20 63 68 61 |data typ|e of cha|
|00001e50| 72 61 63 74 65 72 73 20 | 69 6e 20 74 65 78 74 20 |racters |in text |
|00001e60| 66 69 6c 65 73 7d 0a 40 | 64 20 66 69 72 73 74 5f |files}.@|d first_|
|00001e70| 74 65 78 74 5f 63 68 61 | 72 3d 30 20 7b 6f 72 64 |text_cha|r=0 {ord|
|00001e80| 69 6e 61 6c 20 6e 75 6d | 62 65 72 20 6f 66 20 74 |inal num|ber of t|
|00001e90| 68 65 20 73 6d 61 6c 6c | 65 73 74 20 65 6c 65 6d |he small|est elem|
|00001ea0| 65 6e 74 20 6f 66 20 7c | 74 65 78 74 5f 63 68 61 |ent of ||text_cha|
|00001eb0| 72 7c 7d 0a 40 64 20 6c | 61 73 74 5f 74 65 78 74 |r|}.@d l|ast_text|
|00001ec0| 5f 63 68 61 72 3d 31 32 | 37 20 7b 6f 72 64 69 6e |_char=12|7 {ordin|
|00001ed0| 61 6c 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |al numbe|r of the|
|00001ee0| 20 6c 61 72 67 65 73 74 | 20 65 6c 65 6d 65 6e 74 | largest| element|
|00001ef0| 20 6f 66 20 7c 74 65 78 | 74 5f 63 68 61 72 7c 7d | of |tex|t_char|}|
|00001f00| 0a 0a 40 3c 54 79 70 65 | 73 2e 2e 2e 40 3e 3d 0a |..@<Type|s...@>=.|
|00001f10| 40 21 74 65 78 74 5f 66 | 69 6c 65 3d 70 61 63 6b |@!text_f|ile=pack|
|00001f20| 65 64 20 66 69 6c 65 20 | 6f 66 20 74 65 78 74 5f |ed file |of text_|
|00001f30| 63 68 61 72 3b 0a 0a 40 | 20 54 68 65 20 5c 2e 7b |char;..@| The \.{|
|00001f40| 44 56 49 44 4f 43 7d 20 | 70 72 6f 63 65 73 73 6f |DVIDOC} |processo|
|00001f50| 72 20 63 6f 6e 76 65 72 | 74 73 20 62 65 74 77 65 |r conver|ts betwe|
|00001f60| 65 6e 20 41 53 43 49 49 | 20 63 6f 64 65 20 61 6e |en ASCII| code an|
|00001f70| 64 0a 74 68 65 20 75 73 | 65 72 27 73 20 65 78 74 |d.the us|er's ext|
|00001f80| 65 72 6e 61 6c 20 63 68 | 61 72 61 63 74 65 72 20 |ernal ch|aracter |
|00001f90| 73 65 74 20 62 79 20 6d | 65 61 6e 73 20 6f 66 20 |set by m|eans of |
|00001fa0| 61 72 72 61 79 73 20 7c | 78 6f 72 64 7c 20 61 6e |arrays ||xord| an|
|00001fb0| 64 20 7c 78 63 68 72 7c | 0a 74 68 61 74 20 61 72 |d |xchr||.that ar|
|00001fc0| 65 20 61 6e 61 6c 6f 67 | 6f 75 73 20 74 6f 20 5c |e analog|ous to \|
|00001fd0| 50 41 53 43 41 4c 27 73 | 20 7c 6f 72 64 7c 20 61 |PASCAL's| |ord| a|
|00001fe0| 6e 64 20 7c 63 68 72 7c | 20 66 75 6e 63 74 69 6f |nd |chr|| functio|
|00001ff0| 6e 73 2e 0a 0a 40 3c 47 | 6c 6f 62 61 6c 73 2e 2e |ns...@<G|lobals..|
|00002000| 2e 40 3e 3d 0a 40 21 78 | 6f 72 64 3a 20 61 72 72 |.@>=.@!x|ord: arr|
|00002010| 61 79 20 5b 74 65 78 74 | 5f 63 68 61 72 5d 20 6f |ay [text|_char] o|
|00002020| 66 20 41 53 43 49 49 5f | 63 6f 64 65 3b 0a 20 20 |f ASCII_|code;. |
|00002030| 7b 73 70 65 63 69 66 69 | 65 73 20 63 6f 6e 76 65 |{specifi|es conve|
|00002040| 72 73 69 6f 6e 20 6f 66 | 20 69 6e 70 75 74 20 63 |rsion of| input c|
|00002050| 68 61 72 61 63 74 65 72 | 73 7d 0a 40 21 78 63 68 |haracter|s}.@!xch|
|00002060| 72 3a 20 61 72 72 61 79 | 20 5b 30 2e 2e 32 35 35 |r: array| [0..255|
|00002070| 5d 20 6f 66 20 74 65 78 | 74 5f 63 68 61 72 3b 0a |] of tex|t_char;.|
|00002080| 20 20 7b 73 70 65 63 69 | 66 69 65 73 20 63 6f 6e | {speci|fies con|
|00002090| 76 65 72 73 69 6f 6e 20 | 6f 66 20 6f 75 74 70 75 |version |of outpu|
|000020a0| 74 20 63 68 61 72 61 63 | 74 65 72 73 7d 0a 0a 40 |t charac|ters}..@|
|000020b0| 20 55 6e 64 65 72 20 6f | 75 72 20 61 73 73 75 6d | Under o|ur assum|
|000020c0| 70 74 69 6f 6e 20 74 68 | 61 74 20 74 68 65 20 76 |ption th|at the v|
|000020d0| 69 73 69 62 6c 65 20 63 | 68 61 72 61 63 74 65 72 |isible c|haracter|
|000020e0| 73 20 6f 66 20 73 74 61 | 6e 64 61 72 64 20 41 53 |s of sta|ndard AS|
|000020f0| 43 49 49 20 61 72 65 0a | 61 6c 6c 20 70 72 65 73 |CII are.|all pres|
|00002100| 65 6e 74 2c 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ent, the| followi|
|00002110| 6e 67 20 61 73 73 69 67 | 6e 6d 65 6e 74 20 73 74 |ng assig|nment st|
|00002120| 61 74 65 6d 65 6e 74 73 | 20 69 6e 69 74 69 61 6c |atements| initial|
|00002130| 69 7a 65 20 74 68 65 0a | 7c 78 63 68 72 7c 20 61 |ize the.||xchr| a|
|00002140| 72 72 61 79 20 70 72 6f | 70 65 72 6c 79 2c 20 77 |rray pro|perly, w|
|00002150| 69 74 68 6f 75 74 20 6e | 65 65 64 69 6e 67 20 61 |ithout n|eeding a|
|00002160| 6e 79 20 73 79 73 74 65 | 6d 2d 64 65 70 65 6e 64 |ny syste|m-depend|
|00002170| 65 6e 74 20 63 68 61 6e | 67 65 73 2e 0a 0a 40 3c |ent chan|ges...@<|
|00002180| 53 65 74 20 69 6e 69 74 | 2e 2e 2e 40 3e 3d 0a 66 |Set init|...@>=.f|
|00002190| 6f 72 20 69 3a 3d 30 20 | 74 6f 20 40 27 33 37 20 |or i:=0 |to @'37 |
|000021a0| 64 6f 20 78 63 68 72 5b | 69 5d 3a 3d 27 3f 27 3b |do xchr[|i]:='?';|
|000021b0| 0a 78 63 68 72 5b 40 27 | 34 30 5d 3a 3d 27 20 27 |.xchr[@'|40]:=' '|
|000021c0| 3b 0a 78 63 68 72 5b 40 | 27 34 31 5d 3a 3d 27 21 |;.xchr[@|'41]:='!|
|000021d0| 27 3b 0a 78 63 68 72 5b | 40 27 34 32 5d 3a 3d 27 |';.xchr[|@'42]:='|
|000021e0| 22 27 3b 0a 78 63 68 72 | 5b 40 27 34 33 5d 3a 3d |"';.xchr|[@'43]:=|
|000021f0| 27 23 27 3b 0a 78 63 68 | 72 5b 40 27 34 34 5d 3a |'#';.xch|r[@'44]:|
|00002200| 3d 27 24 27 3b 0a 78 63 | 68 72 5b 40 27 34 35 5d |='$';.xc|hr[@'45]|
|00002210| 3a 3d 27 25 27 3b 0a 78 | 63 68 72 5b 40 27 34 36 |:='%';.x|chr[@'46|
|00002220| 5d 3a 3d 27 26 27 3b 0a | 78 63 68 72 5b 40 27 34 |]:='&';.|xchr[@'4|
|00002230| 37 5d 3a 3d 27 27 27 27 | 3b 40 2f 0a 78 63 68 72 |7]:=''''|;@/.xchr|
|00002240| 5b 40 27 35 30 5d 3a 3d | 27 28 27 3b 0a 78 63 68 |[@'50]:=|'(';.xch|
|00002250| 72 5b 40 27 35 31 5d 3a | 3d 27 29 27 3b 0a 78 63 |r[@'51]:|=')';.xc|
|00002260| 68 72 5b 40 27 35 32 5d | 3a 3d 27 2a 27 3b 0a 78 |hr[@'52]|:='*';.x|
|00002270| 63 68 72 5b 40 27 35 33 | 5d 3a 3d 27 2b 27 3b 0a |chr[@'53|]:='+';.|
|00002280| 78 63 68 72 5b 40 27 35 | 34 5d 3a 3d 27 2c 27 3b |xchr[@'5|4]:=',';|
|00002290| 0a 78 63 68 72 5b 40 27 | 35 35 5d 3a 3d 27 2d 27 |.xchr[@'|55]:='-'|
|000022a0| 3b 0a 78 63 68 72 5b 40 | 27 35 36 5d 3a 3d 27 2e |;.xchr[@|'56]:='.|
|000022b0| 27 3b 0a 78 63 68 72 5b | 40 27 35 37 5d 3a 3d 27 |';.xchr[|@'57]:='|
|000022c0| 2f 27 3b 40 2f 0a 78 63 | 68 72 5b 40 27 36 30 5d |/';@/.xc|hr[@'60]|
|000022d0| 3a 3d 27 30 27 3b 0a 78 | 63 68 72 5b 40 27 36 31 |:='0';.x|chr[@'61|
|000022e0| 5d 3a 3d 27 31 27 3b 0a | 78 63 68 72 5b 40 27 36 |]:='1';.|xchr[@'6|
|000022f0| 32 5d 3a 3d 27 32 27 3b | 0a 78 63 68 72 5b 40 27 |2]:='2';|.xchr[@'|
|00002300| 36 33 5d 3a 3d 27 33 27 | 3b 0a 78 63 68 72 5b 40 |63]:='3'|;.xchr[@|
|00002310| 27 36 34 5d 3a 3d 27 34 | 27 3b 0a 78 63 68 72 5b |'64]:='4|';.xchr[|
|00002320| 40 27 36 35 5d 3a 3d 27 | 35 27 3b 0a 78 63 68 72 |@'65]:='|5';.xchr|
|00002330| 5b 40 27 36 36 5d 3a 3d | 27 36 27 3b 0a 78 63 68 |[@'66]:=|'6';.xch|
|00002340| 72 5b 40 27 36 37 5d 3a | 3d 27 37 27 3b 40 2f 0a |r[@'67]:|='7';@/.|
|00002350| 78 63 68 72 5b 40 27 37 | 30 5d 3a 3d 27 38 27 3b |xchr[@'7|0]:='8';|
|00002360| 0a 78 63 68 72 5b 40 27 | 37 31 5d 3a 3d 27 39 27 |.xchr[@'|71]:='9'|
|00002370| 3b 0a 78 63 68 72 5b 40 | 27 37 32 5d 3a 3d 27 3a |;.xchr[@|'72]:=':|
|00002380| 27 3b 0a 78 63 68 72 5b | 40 27 37 33 5d 3a 3d 27 |';.xchr[|@'73]:='|
|00002390| 3b 27 3b 0a 78 63 68 72 | 5b 40 27 37 34 5d 3a 3d |;';.xchr|[@'74]:=|
|000023a0| 27 3c 27 3b 0a 78 63 68 | 72 5b 40 27 37 35 5d 3a |'<';.xch|r[@'75]:|
|000023b0| 3d 27 3d 27 3b 0a 78 63 | 68 72 5b 40 27 37 36 5d |='=';.xc|hr[@'76]|
|000023c0| 3a 3d 27 3e 27 3b 0a 78 | 63 68 72 5b 40 27 37 37 |:='>';.x|chr[@'77|
|000023d0| 5d 3a 3d 27 3f 27 3b 40 | 2f 0a 78 63 68 72 5b 40 |]:='?';@|/.xchr[@|
|000023e0| 27 31 30 30 5d 3a 3d 27 | 40 40 27 3b 0a 78 63 68 |'100]:='|@@';.xch|
|000023f0| 72 5b 40 27 31 30 31 5d | 3a 3d 27 41 27 3b 0a 78 |r[@'101]|:='A';.x|
|00002400| 63 68 72 5b 40 27 31 30 | 32 5d 3a 3d 27 42 27 3b |chr[@'10|2]:='B';|
|00002410| 0a 78 63 68 72 5b 40 27 | 31 30 33 5d 3a 3d 27 43 |.xchr[@'|103]:='C|
|00002420| 27 3b 0a 78 63 68 72 5b | 40 27 31 30 34 5d 3a 3d |';.xchr[|@'104]:=|
|00002430| 27 44 27 3b 0a 78 63 68 | 72 5b 40 27 31 30 35 5d |'D';.xch|r[@'105]|
|00002440| 3a 3d 27 45 27 3b 0a 78 | 63 68 72 5b 40 27 31 30 |:='E';.x|chr[@'10|
|00002450| 36 5d 3a 3d 27 46 27 3b | 0a 78 63 68 72 5b 40 27 |6]:='F';|.xchr[@'|
|00002460| 31 30 37 5d 3a 3d 27 47 | 27 3b 40 2f 0a 78 63 68 |107]:='G|';@/.xch|
|00002470| 72 5b 40 27 31 31 30 5d | 3a 3d 27 48 27 3b 0a 78 |r[@'110]|:='H';.x|
|00002480| 63 68 72 5b 40 27 31 31 | 31 5d 3a 3d 27 49 27 3b |chr[@'11|1]:='I';|
|00002490| 0a 78 63 68 72 5b 40 27 | 31 31 32 5d 3a 3d 27 4a |.xchr[@'|112]:='J|
|000024a0| 27 3b 0a 78 63 68 72 5b | 40 27 31 31 33 5d 3a 3d |';.xchr[|@'113]:=|
|000024b0| 27 4b 27 3b 0a 78 63 68 | 72 5b 40 27 31 31 34 5d |'K';.xch|r[@'114]|
|000024c0| 3a 3d 27 4c 27 3b 0a 78 | 63 68 72 5b 40 27 31 31 |:='L';.x|chr[@'11|
|000024d0| 35 5d 3a 3d 27 4d 27 3b | 0a 78 63 68 72 5b 40 27 |5]:='M';|.xchr[@'|
|000024e0| 31 31 36 5d 3a 3d 27 4e | 27 3b 0a 78 63 68 72 5b |116]:='N|';.xchr[|
|000024f0| 40 27 31 31 37 5d 3a 3d | 27 4f 27 3b 40 2f 0a 78 |@'117]:=|'O';@/.x|
|00002500| 63 68 72 5b 40 27 31 32 | 30 5d 3a 3d 27 50 27 3b |chr[@'12|0]:='P';|
|00002510| 0a 78 63 68 72 5b 40 27 | 31 32 31 5d 3a 3d 27 51 |.xchr[@'|121]:='Q|
|00002520| 27 3b 0a 78 63 68 72 5b | 40 27 31 32 32 5d 3a 3d |';.xchr[|@'122]:=|
|00002530| 27 52 27 3b 0a 78 63 68 | 72 5b 40 27 31 32 33 5d |'R';.xch|r[@'123]|
|00002540| 3a 3d 27 53 27 3b 0a 78 | 63 68 72 5b 40 27 31 32 |:='S';.x|chr[@'12|
|00002550| 34 5d 3a 3d 27 54 27 3b | 0a 78 63 68 72 5b 40 27 |4]:='T';|.xchr[@'|
|00002560| 31 32 35 5d 3a 3d 27 55 | 27 3b 0a 78 63 68 72 5b |125]:='U|';.xchr[|
|00002570| 40 27 31 32 36 5d 3a 3d | 27 56 27 3b 0a 78 63 68 |@'126]:=|'V';.xch|
|00002580| 72 5b 40 27 31 32 37 5d | 3a 3d 27 57 27 3b 40 2f |r[@'127]|:='W';@/|
|00002590| 0a 78 63 68 72 5b 40 27 | 31 33 30 5d 3a 3d 27 58 |.xchr[@'|130]:='X|
|000025a0| 27 3b 0a 78 63 68 72 5b | 40 27 31 33 31 5d 3a 3d |';.xchr[|@'131]:=|
|000025b0| 27 59 27 3b 0a 78 63 68 | 72 5b 40 27 31 33 32 5d |'Y';.xch|r[@'132]|
|000025c0| 3a 3d 27 5a 27 3b 0a 78 | 63 68 72 5b 40 27 31 33 |:='Z';.x|chr[@'13|
|000025d0| 33 5d 3a 3d 27 5b 27 3b | 0a 78 63 68 72 5b 40 27 |3]:='[';|.xchr[@'|
|000025e0| 31 33 34 5d 3a 3d 27 5c | 27 3b 0a 78 63 68 72 5b |134]:='\|';.xchr[|
|000025f0| 40 27 31 33 35 5d 3a 3d | 27 5d 27 3b 0a 78 63 68 |@'135]:=|']';.xch|
|00002600| 72 5b 40 27 31 33 36 5d | 3a 3d 27 5e 27 3b 0a 78 |r[@'136]|:='^';.x|
|00002610| 63 68 72 5b 40 27 31 33 | 37 5d 3a 3d 27 5f 27 3b |chr[@'13|7]:='_';|
|00002620| 40 2f 0a 78 63 68 72 5b | 40 27 31 34 30 5d 3a 3d |@/.xchr[|@'140]:=|
|00002630| 27 60 27 3b 0a 78 63 68 | 72 5b 40 27 31 34 31 5d |'`';.xch|r[@'141]|
|00002640| 3a 3d 27 61 27 3b 0a 78 | 63 68 72 5b 40 27 31 34 |:='a';.x|chr[@'14|
|00002650| 32 5d 3a 3d 27 62 27 3b | 0a 78 63 68 72 5b 40 27 |2]:='b';|.xchr[@'|
|00002660| 31 34 33 5d 3a 3d 27 63 | 27 3b 0a 78 63 68 72 5b |143]:='c|';.xchr[|
|00002670| 40 27 31 34 34 5d 3a 3d | 27 64 27 3b 0a 78 63 68 |@'144]:=|'d';.xch|
|00002680| 72 5b 40 27 31 34 35 5d | 3a 3d 27 65 27 3b 0a 78 |r[@'145]|:='e';.x|
|00002690| 63 68 72 5b 40 27 31 34 | 36 5d 3a 3d 27 66 27 3b |chr[@'14|6]:='f';|
|000026a0| 0a 78 63 68 72 5b 40 27 | 31 34 37 5d 3a 3d 27 67 |.xchr[@'|147]:='g|
|000026b0| 27 3b 40 2f 0a 78 63 68 | 72 5b 40 27 31 35 30 5d |';@/.xch|r[@'150]|
|000026c0| 3a 3d 27 68 27 3b 0a 78 | 63 68 72 5b 40 27 31 35 |:='h';.x|chr[@'15|
|000026d0| 31 5d 3a 3d 27 69 27 3b | 0a 78 63 68 72 5b 40 27 |1]:='i';|.xchr[@'|
|000026e0| 31 35 32 5d 3a 3d 27 6a | 27 3b 0a 78 63 68 72 5b |152]:='j|';.xchr[|
|000026f0| 40 27 31 35 33 5d 3a 3d | 27 6b 27 3b 0a 78 63 68 |@'153]:=|'k';.xch|
|00002700| 72 5b 40 27 31 35 34 5d | 3a 3d 27 6c 27 3b 0a 78 |r[@'154]|:='l';.x|
|00002710| 63 68 72 5b 40 27 31 35 | 35 5d 3a 3d 27 6d 27 3b |chr[@'15|5]:='m';|
|00002720| 0a 78 63 68 72 5b 40 27 | 31 35 36 5d 3a 3d 27 6e |.xchr[@'|156]:='n|
|00002730| 27 3b 0a 78 63 68 72 5b | 40 27 31 35 37 5d 3a 3d |';.xchr[|@'157]:=|
|00002740| 27 6f 27 3b 40 2f 0a 78 | 63 68 72 5b 40 27 31 36 |'o';@/.x|chr[@'16|
|00002750| 30 5d 3a 3d 27 70 27 3b | 0a 78 63 68 72 5b 40 27 |0]:='p';|.xchr[@'|
|00002760| 31 36 31 5d 3a 3d 27 71 | 27 3b 0a 78 63 68 72 5b |161]:='q|';.xchr[|
|00002770| 40 27 31 36 32 5d 3a 3d | 27 72 27 3b 0a 78 63 68 |@'162]:=|'r';.xch|
|00002780| 72 5b 40 27 31 36 33 5d | 3a 3d 27 73 27 3b 0a 78 |r[@'163]|:='s';.x|
|00002790| 63 68 72 5b 40 27 31 36 | 34 5d 3a 3d 27 74 27 3b |chr[@'16|4]:='t';|
|000027a0| 0a 78 63 68 72 5b 40 27 | 31 36 35 5d 3a 3d 27 75 |.xchr[@'|165]:='u|
|000027b0| 27 3b 0a 78 63 68 72 5b | 40 27 31 36 36 5d 3a 3d |';.xchr[|@'166]:=|
|000027c0| 27 76 27 3b 0a 78 63 68 | 72 5b 40 27 31 36 37 5d |'v';.xch|r[@'167]|
|000027d0| 3a 3d 27 77 27 3b 40 2f | 0a 78 63 68 72 5b 40 27 |:='w';@/|.xchr[@'|
|000027e0| 31 37 30 5d 3a 3d 27 78 | 27 3b 0a 78 63 68 72 5b |170]:='x|';.xchr[|
|000027f0| 40 27 31 37 31 5d 3a 3d | 27 79 27 3b 0a 78 63 68 |@'171]:=|'y';.xch|
|00002800| 72 5b 40 27 31 37 32 5d | 3a 3d 27 7a 27 3b 0a 78 |r[@'172]|:='z';.x|
|00002810| 63 68 72 5b 40 27 31 37 | 33 5d 3a 3d 27 7b 27 3b |chr[@'17|3]:='{';|
|00002820| 0a 78 63 68 72 5b 40 27 | 31 37 34 5d 3a 3d 27 7c |.xchr[@'|174]:='||
|00002830| 27 3b 0a 78 63 68 72 5b | 40 27 31 37 35 5d 3a 3d |';.xchr[|@'175]:=|
|00002840| 27 7d 27 3b 0a 78 63 68 | 72 5b 40 27 31 37 36 5d |'}';.xch|r[@'176]|
|00002850| 3a 3d 27 7e 27 3b 0a 66 | 6f 72 20 69 3a 3d 40 27 |:='~';.f|or i:=@'|
|00002860| 31 37 37 20 74 6f 20 32 | 35 35 20 64 6f 20 78 63 |177 to 2|55 do xc|
|00002870| 68 72 5b 69 5d 3a 3d 27 | 3f 27 3b 0a 0a 40 20 54 |hr[i]:='|?';..@ T|
|00002880| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 73 79 73 |he follo|wing sys|
|00002890| 74 65 6d 2d 69 6e 64 65 | 70 65 6e 64 65 6e 74 20 |tem-inde|pendent |
|000028a0| 63 6f 64 65 20 6d 61 6b | 65 73 20 74 68 65 20 7c |code mak|es the ||
|000028b0| 78 6f 72 64 7c 20 61 72 | 72 61 79 20 63 6f 6e 74 |xord| ar|ray cont|
|000028c0| 61 69 6e 20 61 0a 73 75 | 69 74 61 62 6c 65 20 69 |ain a.su|itable i|
|000028d0| 6e 76 65 72 73 65 20 74 | 6f 20 74 68 65 20 69 6e |nverse t|o the in|
|000028e0| 66 6f 72 6d 61 74 69 6f | 6e 20 69 6e 20 7c 78 63 |formatio|n in |xc|
|000028f0| 68 72 7c 2e 0a 0a 40 3c | 53 65 74 20 69 6e 69 74 |hr|...@<|Set init|
|00002900| 2e 2e 2e 40 3e 3d 0a 66 | 6f 72 20 69 3a 3d 66 69 |...@>=.f|or i:=fi|
|00002910| 72 73 74 5f 74 65 78 74 | 5f 63 68 61 72 20 74 6f |rst_text|_char to|
|00002920| 20 6c 61 73 74 5f 74 65 | 78 74 5f 63 68 61 72 20 | last_te|xt_char |
|00002930| 64 6f 20 78 6f 72 64 5b | 63 68 72 28 69 29 5d 3a |do xord[|chr(i)]:|
|00002940| 3d 40 27 34 30 3b 0a 66 | 6f 72 20 69 3a 3d 22 20 |=@'40;.f|or i:=" |
|00002950| 22 20 74 6f 20 22 7e 22 | 20 64 6f 20 78 6f 72 64 |" to "~"| do xord|
|00002960| 5b 78 63 68 72 5b 69 5d | 5d 3a 3d 69 3b 0a 0a 40 |[xchr[i]|]:=i;..@|
|00002970| 2a 20 44 65 76 69 63 65 | 2d 69 6e 64 65 70 65 6e |* Device|-indepen|
|00002980| 64 65 6e 74 20 66 69 6c | 65 20 66 6f 72 6d 61 74 |dent fil|e format|
|00002990| 2e 0a 42 65 66 6f 72 65 | 20 77 65 20 67 65 74 20 |..Before| we get |
|000029a0| 69 6e 74 6f 20 74 68 65 | 20 64 65 74 61 69 6c 73 |into the| details|
|000029b0| 20 6f 66 20 5c 2e 7b 44 | 56 49 74 79 70 65 7d 2c | of \.{D|VItype},|
|000029c0| 20 77 65 20 6e 65 65 64 | 20 74 6f 20 6b 6e 6f 77 | we need| to know|
|000029d0| 20 65 78 61 63 74 6c 79 | 0a 77 68 61 74 20 5c 2e | exactly|.what \.|
|000029e0| 7b 44 56 49 7d 20 66 69 | 6c 65 73 20 61 72 65 2e |{DVI} fi|les are.|
|000029f0| 20 54 68 65 20 66 6f 72 | 6d 20 6f 66 20 73 75 63 | The for|m of suc|
|00002a00| 68 20 66 69 6c 65 73 20 | 77 61 73 20 64 65 73 69 |h files |was desi|
|00002a10| 67 6e 65 64 20 62 79 20 | 44 61 76 69 64 20 52 2e |gned by |David R.|
|00002a20| 0a 40 5e 46 75 63 68 73 | 2c 20 44 61 76 69 64 20 |.@^Fuchs|, David |
|00002a30| 52 61 79 6d 6f 6e 64 40 | 3e 0a 46 75 63 68 73 20 |Raymond@|>.Fuchs |
|00002a40| 69 6e 20 31 39 37 39 2e | 20 41 6c 6d 6f 73 74 20 |in 1979.| Almost |
|00002a50| 61 6e 79 20 72 65 61 73 | 6f 6e 61 62 6c 65 20 74 |any reas|onable t|
|00002a60| 79 70 65 73 65 74 74 69 | 6e 67 20 64 65 76 69 63 |ypesetti|ng devic|
|00002a70| 65 20 63 61 6e 20 62 65 | 20 64 72 69 76 65 6e 20 |e can be| driven |
|00002a80| 62 79 0a 61 20 70 72 6f | 67 72 61 6d 20 74 68 61 |by.a pro|gram tha|
|00002a90| 74 20 74 61 6b 65 73 20 | 5c 2e 7b 44 56 49 7d 20 |t takes |\.{DVI} |
|00002aa0| 66 69 6c 65 73 20 61 73 | 20 69 6e 70 75 74 2c 20 |files as| input, |
|00002ab0| 61 6e 64 20 64 6f 7a 65 | 6e 73 20 6f 66 20 73 75 |and doze|ns of su|
|00002ac0| 63 68 0a 5c 2e 7b 44 56 | 49 7d 2d 74 6f 2d 77 68 |ch.\.{DV|I}-to-wh|
|00002ad0| 61 74 65 76 65 72 20 70 | 72 6f 67 72 61 6d 73 20 |atever p|rograms |
|00002ae0| 68 61 76 65 20 62 65 65 | 6e 20 77 72 69 74 74 65 |have bee|n writte|
|00002af0| 6e 2e 20 54 68 75 73 2c | 20 69 74 20 69 73 20 70 |n. Thus,| it is p|
|00002b00| 6f 73 73 69 62 6c 65 20 | 74 6f 0a 70 72 69 6e 74 |ossible |to.print|
|00002b10| 20 74 68 65 20 6f 75 74 | 70 75 74 20 6f 66 20 64 | the out|put of d|
|00002b20| 6f 63 75 6d 65 6e 74 20 | 63 6f 6d 70 69 6c 65 72 |ocument |compiler|
|00002b30| 73 20 6c 69 6b 65 20 5c | 54 65 58 5c 20 6f 6e 20 |s like \|TeX\ on |
|00002b40| 6d 61 6e 79 20 64 69 66 | 66 65 72 65 6e 74 20 6b |many dif|ferent k|
|00002b50| 69 6e 64 73 0a 6f 66 20 | 65 71 75 69 70 6d 65 6e |inds.of |equipmen|
|00002b60| 74 2e 0a 0a 41 20 5c 2e | 7b 44 56 49 7d 20 66 69 |t...A \.|{DVI} fi|
|00002b70| 6c 65 20 69 73 20 61 20 | 73 74 72 65 61 6d 20 6f |le is a |stream o|
|00002b80| 66 20 38 2d 62 69 74 20 | 62 79 74 65 73 2c 20 77 |f 8-bit |bytes, w|
|00002b90| 68 69 63 68 20 6d 61 79 | 20 62 65 20 72 65 67 61 |hich may| be rega|
|00002ba0| 72 64 65 64 20 61 73 20 | 61 0a 73 65 72 69 65 73 |rded as |a.series|
|00002bb0| 20 6f 66 20 63 6f 6d 6d | 61 6e 64 73 20 69 6e 20 | of comm|ands in |
|00002bc0| 61 20 6d 61 63 68 69 6e | 65 2d 6c 69 6b 65 20 6c |a machin|e-like l|
|00002bd0| 61 6e 67 75 61 67 65 2e | 20 54 68 65 20 66 69 72 |anguage.| The fir|
|00002be0| 73 74 20 62 79 74 65 20 | 6f 66 20 65 61 63 68 20 |st byte |of each |
|00002bf0| 63 6f 6d 6d 61 6e 64 0a | 69 73 20 74 68 65 20 6f |command.|is the o|
|00002c00| 70 65 72 61 74 69 6f 6e | 20 63 6f 64 65 2c 20 61 |peration| code, a|
|00002c10| 6e 64 20 74 68 69 73 20 | 63 6f 64 65 20 69 73 20 |nd this |code is |
|00002c20| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 7a 65 72 6f |followed| by zero|
|00002c30| 20 6f 72 20 6d 6f 72 65 | 20 62 79 74 65 73 0a 74 | or more| bytes.t|
|00002c40| 68 61 74 20 70 72 6f 76 | 69 64 65 20 70 61 72 61 |hat prov|ide para|
|00002c50| 6d 65 74 65 72 73 20 74 | 6f 20 74 68 65 20 63 6f |meters t|o the co|
|00002c60| 6d 6d 61 6e 64 2e 20 54 | 68 65 20 70 61 72 61 6d |mmand. T|he param|
|00002c70| 65 74 65 72 73 20 74 68 | 65 6d 73 65 6c 76 65 73 |eters th|emselves|
|00002c80| 20 6d 61 79 20 63 6f 6e | 73 69 73 74 0a 6f 66 20 | may con|sist.of |
|00002c90| 73 65 76 65 72 61 6c 20 | 63 6f 6e 73 65 63 75 74 |several |consecut|
|00002ca0| 69 76 65 20 62 79 74 65 | 73 3b 20 66 6f 72 20 65 |ive byte|s; for e|
|00002cb0| 78 61 6d 70 6c 65 2c 20 | 74 68 65 20 60 7c 73 65 |xample, |the `|se|
|00002cc0| 74 5f 72 75 6c 65 7c 27 | 20 63 6f 6d 6d 61 6e 64 |t_rule|'| command|
|00002cd0| 20 68 61 73 20 74 77 6f | 0a 70 61 72 61 6d 65 74 | has two|.paramet|
|00002ce0| 65 72 73 2c 20 65 61 63 | 68 20 6f 66 20 77 68 69 |ers, eac|h of whi|
|00002cf0| 63 68 20 69 73 20 66 6f | 75 72 20 62 79 74 65 73 |ch is fo|ur bytes|
|00002d00| 20 6c 6f 6e 67 2e 20 50 | 61 72 61 6d 65 74 65 72 | long. P|arameter|
|00002d10| 73 20 61 72 65 20 75 73 | 75 61 6c 6c 79 0a 72 65 |s are us|ually.re|
|00002d20| 67 61 72 64 65 64 20 61 | 73 20 6e 6f 6e 6e 65 67 |garded a|s nonneg|
|00002d30| 61 74 69 76 65 20 69 6e | 74 65 67 65 72 73 3b 20 |ative in|tegers; |
|00002d40| 62 75 74 20 66 6f 75 72 | 2d 62 79 74 65 2d 6c 6f |but four|-byte-lo|
|00002d50| 6e 67 20 70 61 72 61 6d | 65 74 65 72 73 2c 0a 61 |ng param|eters,.a|
|00002d60| 6e 64 20 73 68 6f 72 74 | 65 72 20 70 61 72 61 6d |nd short|er param|
|00002d70| 65 74 65 72 73 20 74 68 | 61 74 20 64 65 6e 6f 74 |eters th|at denot|
|00002d80| 65 20 64 69 73 74 61 6e | 63 65 73 2c 20 63 61 6e |e distan|ces, can|
|00002d90| 20 62 65 0a 65 69 74 68 | 65 72 20 70 6f 73 69 74 | be.eith|er posit|
|00002da0| 69 76 65 20 6f 72 20 6e | 65 67 61 74 69 76 65 2e |ive or n|egative.|
|00002db0| 20 53 75 63 68 20 70 61 | 72 61 6d 65 74 65 72 73 | Such pa|rameters|
|00002dc0| 20 61 72 65 20 67 69 76 | 65 6e 20 69 6e 20 74 77 | are giv|en in tw|
|00002dd0| 6f 27 73 20 63 6f 6d 70 | 6c 65 6d 65 6e 74 0a 6e |o's comp|lement.n|
|00002de0| 6f 74 61 74 69 6f 6e 2e | 20 46 6f 72 20 65 78 61 |otation.| For exa|
|00002df0| 6d 70 6c 65 2c 20 61 20 | 74 77 6f 2d 62 79 74 65 |mple, a |two-byte|
|00002e00| 2d 6c 6f 6e 67 20 64 69 | 73 74 61 6e 63 65 20 70 |-long di|stance p|
|00002e10| 61 72 61 6d 65 74 65 72 | 20 68 61 73 20 61 20 76 |arameter| has a v|
|00002e20| 61 6c 75 65 20 62 65 74 | 77 65 65 6e 0a 24 2d 32 |alue bet|ween.$-2|
|00002e30| 5e 7b 31 35 7d 24 20 61 | 6e 64 20 24 32 5e 7b 31 |^{15}$ a|nd $2^{1|
|00002e40| 35 7d 2d 31 24 2e 0a 40 | 2e 44 56 49 20 7b 5c 72 |5}-1$..@|.DVI {\r|
|00002e50| 6d 20 66 69 6c 65 73 7d | 40 3e 0a 0a 41 20 5c 2e |m files}|@>..A \.|
|00002e60| 7b 44 56 49 7d 20 66 69 | 6c 65 20 63 6f 6e 73 69 |{DVI} fi|le consi|
|00002e70| 73 74 73 20 6f 66 20 61 | 20 60 60 70 72 65 61 6d |sts of a| ``pream|
|00002e80| 62 6c 65 2c 27 27 20 66 | 6f 6c 6c 6f 77 65 64 20 |ble,'' f|ollowed |
|00002e90| 62 79 20 61 20 73 65 71 | 75 65 6e 63 65 20 6f 66 |by a seq|uence of|
|00002ea0| 20 6f 6e 65 0a 6f 72 20 | 6d 6f 72 65 20 60 60 70 | one.or |more ``p|
|00002eb0| 61 67 65 73 2c 27 27 20 | 66 6f 6c 6c 6f 77 65 64 |ages,'' |followed|
|00002ec0| 20 62 79 20 61 20 60 60 | 70 6f 73 74 61 6d 62 6c | by a ``|postambl|
|00002ed0| 65 2e 27 27 20 54 68 65 | 20 70 72 65 61 6d 62 6c |e.'' The| preambl|
|00002ee0| 65 20 69 73 20 73 69 6d | 70 6c 79 20 61 0a 7c 70 |e is sim|ply a.|p|
|00002ef0| 72 65 7c 20 63 6f 6d 6d | 61 6e 64 2c 20 77 69 74 |re| comm|and, wit|
|00002f00| 68 20 69 74 73 20 70 61 | 72 61 6d 65 74 65 72 73 |h its pa|rameters|
|00002f10| 20 74 68 61 74 20 64 65 | 66 69 6e 65 20 74 68 65 | that de|fine the|
|00002f20| 20 64 69 6d 65 6e 73 69 | 6f 6e 73 20 75 73 65 64 | dimensi|ons used|
|00002f30| 20 69 6e 20 74 68 65 0a | 66 69 6c 65 3b 20 74 68 | in the.|file; th|
|00002f40| 69 73 20 6d 75 73 74 20 | 63 6f 6d 65 20 66 69 72 |is must |come fir|
|00002f50| 73 74 2e 20 20 45 61 63 | 68 20 60 60 70 61 67 65 |st. Eac|h ``page|
|00002f60| 27 27 20 63 6f 6e 73 69 | 73 74 73 20 6f 66 20 61 |'' consi|sts of a|
|00002f70| 20 7c 62 6f 70 7c 20 63 | 6f 6d 6d 61 6e 64 2c 0a | |bop| c|ommand,.|
|00002f80| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 6e 79 20 |followed| by any |
|00002f90| 6e 75 6d 62 65 72 20 6f | 66 20 6f 74 68 65 72 20 |number o|f other |
|00002fa0| 63 6f 6d 6d 61 6e 64 73 | 20 74 68 61 74 20 74 65 |commands| that te|
|00002fb0| 6c 6c 20 77 68 65 72 65 | 20 63 68 61 72 61 63 74 |ll where| charact|
|00002fc0| 65 72 73 20 61 72 65 20 | 74 6f 0a 62 65 20 70 6c |ers are |to.be pl|
|00002fd0| 61 63 65 64 20 6f 6e 20 | 61 20 70 68 79 73 69 63 |aced on |a physic|
|00002fe0| 61 6c 20 70 61 67 65 2c | 20 66 6f 6c 6c 6f 77 65 |al page,| followe|
|00002ff0| 64 20 62 79 20 61 6e 20 | 7c 65 6f 70 7c 20 63 6f |d by an ||eop| co|
|00003000| 6d 6d 61 6e 64 2e 20 54 | 68 65 20 70 61 67 65 73 |mmand. T|he pages|
|00003010| 0a 61 70 70 65 61 72 20 | 69 6e 20 74 68 65 20 6f |.appear |in the o|
|00003020| 72 64 65 72 20 74 68 61 | 74 20 74 68 65 79 20 77 |rder tha|t they w|
|00003030| 65 72 65 20 67 65 6e 65 | 72 61 74 65 64 2c 20 6e |ere gene|rated, n|
|00003040| 6f 74 20 69 6e 20 61 6e | 79 20 70 61 72 74 69 63 |ot in an|y partic|
|00003050| 75 6c 61 72 0a 6e 75 6d | 65 72 69 63 61 6c 20 6f |ular.num|erical o|
|00003060| 72 64 65 72 2e 20 49 66 | 20 77 65 20 69 67 6e 6f |rder. If| we igno|
|00003070| 72 65 20 7c 6e 6f 70 7c | 20 63 6f 6d 6d 61 6e 64 |re |nop|| command|
|00003080| 73 20 61 6e 64 20 5c 5c | 7b 66 6e 74 5c 5f 64 65 |s and \\|{fnt\_de|
|00003090| 66 7d 20 63 6f 6d 6d 61 | 6e 64 73 0a 28 77 68 69 |f} comma|nds.(whi|
|000030a0| 63 68 20 61 72 65 20 61 | 6c 6c 6f 77 65 64 20 62 |ch are a|llowed b|
|000030b0| 65 74 77 65 65 6e 20 61 | 6e 79 20 74 77 6f 20 63 |etween a|ny two c|
|000030c0| 6f 6d 6d 61 6e 64 73 20 | 69 6e 20 74 68 65 20 66 |ommands |in the f|
|000030d0| 69 6c 65 29 2c 20 65 61 | 63 68 20 7c 65 6f 70 7c |ile), ea|ch |eop||
|000030e0| 0a 63 6f 6d 6d 61 6e 64 | 20 69 73 20 69 6d 6d 65 |.command| is imme|
|000030f0| 64 69 61 74 65 6c 79 20 | 66 6f 6c 6c 6f 77 65 64 |diately |followed|
|00003100| 20 62 79 20 61 20 7c 62 | 6f 70 7c 20 63 6f 6d 6d | by a |b|op| comm|
|00003110| 61 6e 64 2c 20 6f 72 20 | 62 79 20 61 20 7c 70 6f |and, or |by a |po|
|00003120| 73 74 7c 0a 63 6f 6d 6d | 61 6e 64 3b 20 69 6e 20 |st|.comm|and; in |
|00003130| 74 68 65 20 6c 61 74 74 | 65 72 20 63 61 73 65 2c |the latt|er case,|
|00003140| 20 74 68 65 72 65 20 61 | 72 65 20 6e 6f 20 6d 6f | there a|re no mo|
|00003150| 72 65 20 70 61 67 65 73 | 20 69 6e 20 74 68 65 20 |re pages| in the |
|00003160| 66 69 6c 65 2c 20 61 6e | 64 20 74 68 65 0a 72 65 |file, an|d the.re|
|00003170| 6d 61 69 6e 69 6e 67 20 | 62 79 74 65 73 20 66 6f |maining |bytes fo|
|00003180| 72 6d 20 74 68 65 20 70 | 6f 73 74 61 6d 62 6c 65 |rm the p|ostamble|
|00003190| 2e 20 20 46 75 72 74 68 | 65 72 20 64 65 74 61 69 |. Furth|er detai|
|000031a0| 6c 73 20 61 62 6f 75 74 | 20 74 68 65 20 70 6f 73 |ls about| the pos|
|000031b0| 74 61 6d 62 6c 65 0a 77 | 69 6c 6c 20 62 65 20 65 |tamble.w|ill be e|
|000031c0| 78 70 6c 61 69 6e 65 64 | 20 6c 61 74 65 72 2e 0a |xplained| later..|
|000031d0| 0a 53 6f 6d 65 20 70 61 | 72 61 6d 65 74 65 72 73 |.Some pa|rameters|
|000031e0| 20 69 6e 20 5c 2e 7b 44 | 56 49 7d 20 63 6f 6d 6d | in \.{D|VI} comm|
|000031f0| 61 6e 64 73 20 61 72 65 | 20 60 60 70 6f 69 6e 74 |ands are| ``point|
|00003200| 65 72 73 2e 27 27 20 54 | 68 65 73 65 20 61 72 65 |ers.'' T|hese are|
|00003210| 20 66 6f 75 72 2d 62 79 | 74 65 0a 71 75 61 6e 74 | four-by|te.quant|
|00003220| 69 74 69 65 73 20 74 68 | 61 74 20 67 69 76 65 20 |ities th|at give |
|00003230| 74 68 65 20 6c 6f 63 61 | 74 69 6f 6e 20 6e 75 6d |the loca|tion num|
|00003240| 62 65 72 20 6f 66 20 73 | 6f 6d 65 20 6f 74 68 65 |ber of s|ome othe|
|00003250| 72 20 62 79 74 65 20 69 | 6e 20 74 68 65 20 66 69 |r byte i|n the fi|
|00003260| 6c 65 3b 0a 74 68 65 20 | 66 69 72 73 74 20 62 79 |le;.the |first by|
|00003270| 74 65 20 69 73 20 6e 75 | 6d 62 65 72 7e 30 2c 20 |te is nu|mber~0, |
|00003280| 74 68 65 6e 20 63 6f 6d | 65 73 20 6e 75 6d 62 65 |then com|es numbe|
|00003290| 72 7e 31 2c 20 61 6e 64 | 20 73 6f 20 6f 6e 2e 20 |r~1, and| so on. |
|000032a0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 0a 6f 6e 65 |For exam|ple,.one|
|000032b0| 20 6f 66 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 | of the |paramete|
|000032c0| 72 73 20 6f 66 20 61 20 | 7c 62 6f 70 7c 20 63 6f |rs of a ||bop| co|
|000032d0| 6d 6d 61 6e 64 20 70 6f | 69 6e 74 73 20 74 6f 20 |mmand po|ints to |
|000032e0| 74 68 65 20 70 72 65 76 | 69 6f 75 73 20 7c 62 6f |the prev|ious |bo|
|000032f0| 70 7c 3b 0a 74 68 69 73 | 20 6d 61 6b 65 73 20 69 |p|;.this| makes i|
|00003300| 74 20 66 65 61 73 69 62 | 6c 65 20 74 6f 20 72 65 |t feasib|le to re|
|00003310| 61 64 20 74 68 65 20 70 | 61 67 65 73 20 69 6e 20 |ad the p|ages in |
|00003320| 62 61 63 6b 77 61 72 64 | 73 20 6f 72 64 65 72 2c |backward|s order,|
|00003330| 20 69 6e 20 63 61 73 65 | 20 74 68 65 0a 72 65 73 | in case| the.res|
|00003340| 75 6c 74 73 20 61 72 65 | 20 62 65 69 6e 67 20 64 |ults are| being d|
|00003350| 69 72 65 63 74 65 64 20 | 74 6f 20 61 20 64 65 76 |irected |to a dev|
|00003360| 69 63 65 20 74 68 61 74 | 20 73 74 61 63 6b 73 20 |ice that| stacks |
|00003370| 69 74 73 20 6f 75 74 70 | 75 74 20 66 61 63 65 20 |its outp|ut face |
|00003380| 75 70 2e 0a 53 75 70 70 | 6f 73 65 20 74 68 65 20 |up..Supp|ose the |
|00003390| 70 72 65 61 6d 62 6c 65 | 20 6f 66 20 61 20 5c 2e |preamble| of a \.|
|000033a0| 7b 44 56 49 7d 20 66 69 | 6c 65 20 6f 63 63 75 70 |{DVI} fi|le occup|
|000033b0| 69 65 73 20 62 79 74 65 | 73 20 30 20 74 6f 20 39 |ies byte|s 0 to 9|
|000033c0| 39 2e 20 4e 6f 77 20 69 | 66 20 74 68 65 0a 66 69 |9. Now i|f the.fi|
|000033d0| 72 73 74 20 70 61 67 65 | 20 6f 63 63 75 70 69 65 |rst page| occupie|
|000033e0| 73 20 62 79 74 65 73 20 | 31 30 30 20 74 6f 20 39 |s bytes |100 to 9|
|000033f0| 39 39 2c 20 73 61 79 2c | 20 61 6e 64 20 69 66 20 |99, say,| and if |
|00003400| 74 68 65 20 73 65 63 6f | 6e 64 0a 70 61 67 65 20 |the seco|nd.page |
|00003410| 6f 63 63 75 70 69 65 73 | 20 62 79 74 65 73 20 31 |occupies| bytes 1|
|00003420| 30 30 30 20 74 6f 20 31 | 39 39 39 2c 20 74 68 65 |000 to 1|999, the|
|00003430| 6e 20 74 68 65 20 7c 62 | 6f 70 7c 20 74 68 61 74 |n the |b|op| that|
|00003440| 20 73 74 61 72 74 73 20 | 69 6e 20 62 79 74 65 20 | starts |in byte |
|00003450| 31 30 30 30 0a 70 6f 69 | 6e 74 73 20 74 6f 20 31 |1000.poi|nts to 1|
|00003460| 30 30 20 61 6e 64 20 74 | 68 65 20 7c 62 6f 70 7c |00 and t|he |bop||
|00003470| 20 74 68 61 74 20 73 74 | 61 72 74 73 20 69 6e 20 | that st|arts in |
|00003480| 62 79 74 65 20 32 30 30 | 30 20 70 6f 69 6e 74 73 |byte 200|0 points|
|00003490| 20 74 6f 20 31 30 30 30 | 2e 20 28 54 68 65 0a 76 | to 1000|. (The.v|
|000034a0| 65 72 79 20 66 69 72 73 | 74 20 7c 62 6f 70 7c 2c |ery firs|t |bop|,|
|000034b0| 20 69 2e 65 2e 2c 20 74 | 68 65 20 6f 6e 65 20 74 | i.e., t|he one t|
|000034c0| 68 61 74 20 73 74 61 72 | 74 73 20 69 6e 20 62 79 |hat star|ts in by|
|000034d0| 74 65 20 31 30 30 2c 20 | 68 61 73 20 61 20 70 6f |te 100, |has a po|
|000034e0| 69 6e 74 65 72 20 6f 66 | 20 24 2d 31 24 2e 29 0a |inter of| $-1$.).|
|000034f0| 0a 40 20 54 68 65 20 5c | 2e 7b 44 56 49 7d 20 66 |.@ The \|.{DVI} f|
|00003500| 6f 72 6d 61 74 20 69 73 | 20 69 6e 74 65 6e 64 65 |ormat is| intende|
|00003510| 64 20 74 6f 20 62 65 20 | 62 6f 74 68 20 63 6f 6d |d to be |both com|
|00003520| 70 61 63 74 20 61 6e 64 | 20 65 61 73 69 6c 79 20 |pact and| easily |
|00003530| 69 6e 74 65 72 70 72 65 | 74 65 64 0a 62 79 20 61 |interpre|ted.by a|
|00003540| 20 6d 61 63 68 69 6e 65 | 2e 20 43 6f 6d 70 61 63 | machine|. Compac|
|00003550| 74 6e 65 73 73 20 69 73 | 20 61 63 68 69 65 76 65 |tness is| achieve|
|00003560| 64 20 62 79 20 6d 61 6b | 69 6e 67 20 6d 6f 73 74 |d by mak|ing most|
|00003570| 20 6f 66 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 | of the |informat|
|00003580| 69 6f 6e 0a 69 6d 70 6c | 69 63 69 74 20 69 6e 73 |ion.impl|icit ins|
|00003590| 74 65 61 64 20 6f 66 20 | 65 78 70 6c 69 63 69 74 |tead of |explicit|
|000035a0| 2e 20 57 68 65 6e 20 61 | 20 5c 2e 7b 44 56 49 7d |. When a| \.{DVI}|
|000035b0| 2d 72 65 61 64 69 6e 67 | 20 70 72 6f 67 72 61 6d |-reading| program|
|000035c0| 20 72 65 61 64 73 20 74 | 68 65 0a 63 6f 6d 6d 61 | reads t|he.comma|
|000035d0| 6e 64 73 20 66 6f 72 20 | 61 20 70 61 67 65 2c 20 |nds for |a page, |
|000035e0| 69 74 20 6b 65 65 70 73 | 20 74 72 61 63 6b 20 6f |it keeps| track o|
|000035f0| 66 20 73 65 76 65 72 61 | 6c 20 71 75 61 6e 74 69 |f severa|l quanti|
|00003600| 74 69 65 73 3a 20 28 61 | 29 7e 54 68 65 20 63 75 |ties: (a|)~The cu|
|00003610| 72 72 65 6e 74 0a 66 6f | 6e 74 20 7c 66 7c 20 69 |rrent.fo|nt |f| i|
|00003620| 73 20 61 6e 20 69 6e 74 | 65 67 65 72 3b 20 74 68 |s an int|eger; th|
|00003630| 69 73 20 76 61 6c 75 65 | 20 69 73 20 63 68 61 6e |is value| is chan|
|00003640| 67 65 64 20 6f 6e 6c 79 | 0a 62 79 20 5c 5c 7b 66 |ged only|.by \\{f|
|00003650| 6e 74 7d 20 61 6e 64 20 | 5c 5c 7b 66 6e 74 5c 5f |nt} and |\\{fnt\_|
|00003660| 6e 75 6d 7d 20 63 6f 6d | 6d 61 6e 64 73 2e 20 28 |num} com|mands. (|
|00003670| 62 29 7e 54 68 65 20 63 | 75 72 72 65 6e 74 20 70 |b)~The c|urrent p|
|00003680| 6f 73 69 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 70 |osition |on the p|
|00003690| 61 67 65 0a 69 73 20 67 | 69 76 65 6e 20 62 79 20 |age.is g|iven by |
|000036a0| 74 77 6f 20 6e 75 6d 62 | 65 72 73 20 63 61 6c 6c |two numb|ers call|
|000036b0| 65 64 20 74 68 65 20 68 | 6f 72 69 7a 6f 6e 74 61 |ed the h|orizonta|
|000036c0| 6c 20 61 6e 64 20 76 65 | 72 74 69 63 61 6c 20 63 |l and ve|rtical c|
|000036d0| 6f 6f 72 64 69 6e 61 74 | 65 73 2c 0a 7c 68 7c 20 |oordinat|es,.|h| |
|000036e0| 61 6e 64 20 7c 76 7c 2e | 20 42 6f 74 68 20 63 6f |and |v|.| Both co|
|000036f0| 6f 72 64 69 6e 61 74 65 | 73 20 61 72 65 20 7a 65 |ordinate|s are ze|
|00003700| 72 6f 20 61 74 20 74 68 | 65 20 75 70 70 65 72 20 |ro at th|e upper |
|00003710| 6c 65 66 74 20 63 6f 72 | 6e 65 72 20 6f 66 20 74 |left cor|ner of t|
|00003720| 68 65 20 70 61 67 65 3b | 0a 6d 6f 76 69 6e 67 20 |he page;|.moving |
|00003730| 74 6f 20 74 68 65 20 72 | 69 67 68 74 20 63 6f 72 |to the r|ight cor|
|00003740| 72 65 73 70 6f 6e 64 73 | 20 74 6f 20 69 6e 63 72 |responds| to incr|
|00003750| 65 61 73 69 6e 67 20 74 | 68 65 20 68 6f 72 69 7a |easing t|he horiz|
|00003760| 6f 6e 74 61 6c 20 63 6f | 6f 72 64 69 6e 61 74 65 |ontal co|ordinate|
|00003770| 2c 20 61 6e 64 0a 6d 6f | 76 69 6e 67 20 64 6f 77 |, and.mo|ving dow|
|00003780| 6e 20 63 6f 72 72 65 73 | 70 6f 6e 64 73 20 74 6f |n corres|ponds to|
|00003790| 20 69 6e 63 72 65 61 73 | 69 6e 67 20 74 68 65 20 | increas|ing the |
|000037a0| 76 65 72 74 69 63 61 6c | 20 63 6f 6f 72 64 69 6e |vertical| coordin|
|000037b0| 61 74 65 2e 20 54 68 75 | 73 2c 20 74 68 65 0a 63 |ate. Thu|s, the.c|
|000037c0| 6f 6f 72 64 69 6e 61 74 | 65 73 20 61 72 65 20 65 |oordinat|es are e|
|000037d0| 73 73 65 6e 74 69 61 6c | 6c 79 20 43 61 72 74 65 |ssential|ly Carte|
|000037e0| 73 69 61 6e 2c 20 65 78 | 63 65 70 74 20 74 68 61 |sian, ex|cept tha|
|000037f0| 74 20 76 65 72 74 69 63 | 61 6c 20 64 69 72 65 63 |t vertic|al direc|
|00003800| 74 69 6f 6e 73 20 61 72 | 65 0a 66 6c 69 70 70 65 |tions ar|e.flippe|
|00003810| 64 3b 20 74 68 65 20 43 | 61 72 74 65 73 69 61 6e |d; the C|artesian|
|00003820| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 7c 28 68 2c | version| of |(h,|
|00003830| 76 29 7c 20 77 6f 75 6c | 64 20 62 65 20 7c 28 68 |v)| woul|d be |(h|
|00003840| 2c 2d 76 29 7c 2e 20 20 | 28 63 29 7e 54 68 65 0a |,-v)|. |(c)~The.|
|00003850| 63 75 72 72 65 6e 74 20 | 73 70 61 63 69 6e 67 20 |current |spacing |
|00003860| 61 6d 6f 75 6e 74 73 20 | 61 72 65 20 67 69 76 65 |amounts |are give|
|00003870| 6e 20 62 79 20 66 6f 75 | 72 20 6e 75 6d 62 65 72 |n by fou|r number|
|00003880| 73 20 7c 77 7c 2c 20 7c | 78 7c 2c 20 7c 79 7c 2c |s |w|, ||x|, |y|,|
|00003890| 20 61 6e 64 20 7c 7a 7c | 2c 0a 77 68 65 72 65 20 | and |z||,.where |
|000038a0| 7c 77 7c 20 61 6e 64 7e | 7c 78 7c 20 61 72 65 20 ||w| and~||x| are |
|000038b0| 75 73 65 64 20 66 6f 72 | 20 68 6f 72 69 7a 6f 6e |used for| horizon|
|000038c0| 74 61 6c 20 73 70 61 63 | 69 6e 67 20 61 6e 64 20 |tal spac|ing and |
|000038d0| 77 68 65 72 65 20 7c 79 | 7c 20 61 6e 64 7e 7c 7a |where |y|| and~|z|
|000038e0| 7c 0a 61 72 65 20 75 73 | 65 64 20 66 6f 72 20 76 ||.are us|ed for v|
|000038f0| 65 72 74 69 63 61 6c 20 | 73 70 61 63 69 6e 67 2e |ertical |spacing.|
|00003900| 20 28 64 29 7e 54 68 65 | 72 65 20 69 73 20 61 20 | (d)~The|re is a |
|00003910| 73 74 61 63 6b 20 63 6f | 6e 74 61 69 6e 69 6e 67 |stack co|ntaining|
|00003920| 0a 7c 28 68 2c 76 2c 77 | 2c 78 2c 79 2c 7a 29 7c |.|(h,v,w|,x,y,z)||
|00003930| 20 76 61 6c 75 65 73 3b | 20 74 68 65 20 5c 2e 7b | values;| the \.{|
|00003940| 44 56 49 7d 20 63 6f 6d | 6d 61 6e 64 73 20 7c 70 |DVI} com|mands |p|
|00003950| 75 73 68 7c 20 61 6e 64 | 20 7c 70 6f 70 7c 20 61 |ush| and| |pop| a|
|00003960| 72 65 20 75 73 65 64 20 | 74 6f 0a 63 68 61 6e 67 |re used |to.chang|
|00003970| 65 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6c 65 |e the cu|rrent le|
|00003980| 76 65 6c 20 6f 66 20 6f | 70 65 72 61 74 69 6f 6e |vel of o|peration|
|00003990| 2e 20 4e 6f 74 65 20 74 | 68 61 74 20 74 68 65 20 |. Note t|hat the |
|000039a0| 63 75 72 72 65 6e 74 20 | 66 6f 6e 74 7e 7c 66 7c |current |font~|f||
|000039b0| 20 69 73 0a 6e 6f 74 20 | 70 75 73 68 65 64 20 61 | is.not |pushed a|
|000039c0| 6e 64 20 70 6f 70 70 65 | 64 3b 20 74 68 65 20 73 |nd poppe|d; the s|
|000039d0| 74 61 63 6b 20 63 6f 6e | 74 61 69 6e 73 20 6f 6e |tack con|tains on|
|000039e0| 6c 79 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |ly infor|mation a|
|000039f0| 62 6f 75 74 0a 70 6f 73 | 69 74 69 6f 6e 69 6e 67 |bout.pos|itioning|
|00003a00| 2e 0a 0a 54 68 65 20 76 | 61 6c 75 65 73 20 6f 66 |...The v|alues of|
|00003a10| 20 7c 68 7c 2c 20 7c 76 | 7c 2c 20 7c 77 7c 2c 20 | |h|, |v||, |w|, |
|00003a20| 7c 78 7c 2c 20 7c 79 7c | 2c 20 61 6e 64 20 7c 7a ||x|, |y||, and |z|
|00003a30| 7c 20 61 72 65 20 73 69 | 67 6e 65 64 20 69 6e 74 || are si|gned int|
|00003a40| 65 67 65 72 73 20 68 61 | 76 69 6e 67 20 75 70 0a |egers ha|ving up.|
|00003a50| 74 6f 20 33 32 20 62 69 | 74 73 2c 20 69 6e 63 6c |to 32 bi|ts, incl|
|00003a60| 75 64 69 6e 67 20 74 68 | 65 20 73 69 67 6e 2e 20 |uding th|e sign. |
|00003a70| 53 69 6e 63 65 20 74 68 | 65 79 20 72 65 70 72 65 |Since th|ey repre|
|00003a80| 73 65 6e 74 20 70 68 79 | 73 69 63 61 6c 20 64 69 |sent phy|sical di|
|00003a90| 73 74 61 6e 63 65 73 2c | 0a 74 68 65 72 65 20 69 |stances,|.there i|
|00003aa0| 73 20 61 20 73 6d 61 6c | 6c 20 75 6e 69 74 20 6f |s a smal|l unit o|
|00003ab0| 66 20 6d 65 61 73 75 72 | 65 6d 65 6e 74 20 73 75 |f measur|ement su|
|00003ac0| 63 68 20 74 68 61 74 20 | 69 6e 63 72 65 61 73 69 |ch that |increasi|
|00003ad0| 6e 67 20 7c 68 7c 20 62 | 79 7e 31 20 6d 65 61 6e |ng |h| b|y~1 mean|
|00003ae0| 73 0a 6d 6f 76 69 6e 67 | 20 61 20 63 65 72 74 61 |s.moving| a certa|
|00003af0| 69 6e 20 74 69 6e 79 20 | 64 69 73 74 61 6e 63 65 |in tiny |distance|
|00003b00| 20 74 6f 20 74 68 65 20 | 72 69 67 68 74 2e 20 54 | to the |right. T|
|00003b10| 68 65 20 61 63 74 75 61 | 6c 20 75 6e 69 74 20 6f |he actua|l unit o|
|00003b20| 66 0a 6d 65 61 73 75 72 | 65 6d 65 6e 74 20 69 73 |f.measur|ement is|
|00003b30| 20 76 61 72 69 61 62 6c | 65 2c 20 61 73 20 65 78 | variabl|e, as ex|
|00003b40| 70 6c 61 69 6e 65 64 20 | 62 65 6c 6f 77 2e 0a 0a |plained |below...|
|00003b50| 40 20 48 65 72 65 20 69 | 73 20 61 20 6c 69 73 74 |@ Here i|s a list|
|00003b60| 20 6f 66 20 61 6c 6c 20 | 74 68 65 20 63 6f 6d 6d | of all |the comm|
|00003b70| 61 6e 64 73 20 74 68 61 | 74 20 6d 61 79 20 61 70 |ands tha|t may ap|
|00003b80| 70 65 61 72 20 69 6e 20 | 61 20 5c 2e 7b 44 56 49 |pear in |a \.{DVI|
|00003b90| 7d 20 66 69 6c 65 2e 20 | 45 61 63 68 0a 63 6f 6d |} file. |Each.com|
|00003ba0| 6d 61 6e 64 20 69 73 20 | 73 70 65 63 69 66 69 65 |mand is |specifie|
|00003bb0| 64 20 62 79 20 69 74 73 | 20 73 79 6d 62 6f 6c 69 |d by its| symboli|
|00003bc0| 63 20 6e 61 6d 65 20 28 | 65 2e 67 2e 2c 20 7c 62 |c name (|e.g., |b|
|00003bd0| 6f 70 7c 29 2c 20 69 74 | 73 20 6f 70 63 6f 64 65 |op|), it|s opcode|
|00003be0| 20 62 79 74 65 0a 28 65 | 2e 67 2e 2c 20 31 33 39 | byte.(e|.g., 139|
|00003bf0| 29 2c 20 61 6e 64 20 69 | 74 73 20 70 61 72 61 6d |), and i|ts param|
|00003c00| 65 74 65 72 73 20 28 69 | 66 20 61 6e 79 29 2e 20 |eters (i|f any). |
|00003c10| 54 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 61 |The para|meters a|
|00003c20| 72 65 20 66 6f 6c 6c 6f | 77 65 64 0a 62 79 20 61 |re follo|wed.by a|
|00003c30| 20 62 72 61 63 6b 65 74 | 65 64 20 6e 75 6d 62 65 | bracket|ed numbe|
|00003c40| 72 20 74 65 6c 6c 69 6e | 67 20 68 6f 77 20 6d 61 |r tellin|g how ma|
|00003c50| 6e 79 20 62 79 74 65 73 | 20 74 68 65 79 20 6f 63 |ny bytes| they oc|
|00003c60| 63 75 70 79 3b 20 66 6f | 72 20 65 78 61 6d 70 6c |cupy; fo|r exampl|
|00003c70| 65 2c 0a 60 7c 70 5b 34 | 5d 7c 27 20 6d 65 61 6e |e,.`|p[4|]|' mean|
|00003c80| 73 20 74 68 61 74 20 70 | 61 72 61 6d 65 74 65 72 |s that p|arameter|
|00003c90| 20 7c 70 7c 20 69 73 20 | 66 6f 75 72 20 62 79 74 | |p| is |four byt|
|00003ca0| 65 73 20 6c 6f 6e 67 2e | 0a 0a 5c 79 73 6b 69 70 |es long.|..\yskip|
|00003cb0| 5c 68 61 6e 67 7c 73 65 | 74 5f 63 68 61 72 5f 30 |\hang|se|t_char_0|
|00003cc0| 7c 20 30 2e 20 54 79 70 | 65 73 65 74 20 63 68 61 || 0. Typ|eset cha|
|00003cd0| 72 61 63 74 65 72 20 6e | 75 6d 62 65 72 7e 30 20 |racter n|umber~0 |
|00003ce0| 66 72 6f 6d 20 66 6f 6e | 74 7e 7c 66 7c 0a 73 75 |from fon|t~|f|.su|
|00003cf0| 63 68 20 74 68 61 74 20 | 74 68 65 20 72 65 66 65 |ch that |the refe|
|00003d00| 72 65 6e 63 65 20 70 6f | 69 6e 74 20 6f 66 20 74 |rence po|int of t|
|00003d10| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 69 73 20 |he chara|cter is |
|00003d20| 61 74 20 7c 28 68 2c 76 | 29 7c 2e 20 54 68 65 6e |at |(h,v|)|. Then|
|00003d30| 0a 69 6e 63 72 65 61 73 | 65 20 7c 68 7c 20 62 79 |.increas|e |h| by|
|00003d40| 20 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 74 68 | the wid|th of th|
|00003d50| 61 74 20 63 68 61 72 61 | 63 74 65 72 2e 20 4e 6f |at chara|cter. No|
|00003d60| 74 65 20 74 68 61 74 20 | 61 20 63 68 61 72 61 63 |te that |a charac|
|00003d70| 74 65 72 20 6d 61 79 0a | 68 61 76 65 20 7a 65 72 |ter may.|have zer|
|00003d80| 6f 20 6f 72 20 6e 65 67 | 61 74 69 76 65 20 77 69 |o or neg|ative wi|
|00003d90| 64 74 68 2c 20 73 6f 20 | 6f 6e 65 20 63 61 6e 6e |dth, so |one cann|
|00003da0| 6f 74 20 62 65 20 73 75 | 72 65 20 74 68 61 74 20 |ot be su|re that |
|00003db0| 7c 68 7c 20 77 69 6c 6c | 20 61 64 76 61 6e 63 65 ||h| will| advance|
|00003dc0| 0a 61 66 74 65 72 20 74 | 68 69 73 20 63 6f 6d 6d |.after t|his comm|
|00003dd0| 61 6e 64 3b 20 62 75 74 | 20 7c 68 7c 20 75 73 75 |and; but| |h| usu|
|00003de0| 61 6c 6c 79 20 64 6f 65 | 73 20 69 6e 63 72 65 61 |ally doe|s increa|
|00003df0| 73 65 2e 0a 0a 5c 79 73 | 6b 69 70 5c 68 61 6e 67 |se...\ys|kip\hang|
|00003e00| 7c 73 65 74 5f 63 68 61 | 72 5f 31 7c 20 74 68 72 ||set_cha|r_1| thr|
|00003e10| 6f 75 67 68 20 7c 73 65 | 74 5f 63 68 61 72 5f 31 |ough |se|t_char_1|
|00003e20| 32 37 7c 20 28 6f 70 63 | 6f 64 65 73 20 31 20 74 |27| (opc|odes 1 t|
|00003e30| 6f 20 31 32 37 29 2e 0a | 44 6f 20 74 68 65 20 6f |o 127)..|Do the o|
|00003e40| 70 65 72 61 74 69 6f 6e | 73 20 6f 66 20 7c 73 65 |peration|s of |se|
|00003e50| 74 5f 63 68 61 72 5f 30 | 7c 3b 20 62 75 74 20 75 |t_char_0||; but u|
|00003e60| 73 65 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |se the c|haracter|
|00003e70| 20 77 68 6f 73 65 20 6e | 75 6d 62 65 72 0a 6d 61 | whose n|umber.ma|
|00003e80| 74 63 68 65 73 20 74 68 | 65 20 6f 70 63 6f 64 65 |tches th|e opcode|
|00003e90| 2c 20 69 6e 73 74 65 61 | 64 20 6f 66 20 63 68 61 |, instea|d of cha|
|00003ea0| 72 61 63 74 65 72 7e 30 | 2e 0a 0a 5c 79 73 6b 69 |racter~0|...\yski|
|00003eb0| 70 5c 68 61 6e 67 7c 73 | 65 74 31 7c 20 31 32 38 |p\hang|s|et1| 128|
|00003ec0| 20 7c 63 5b 31 5d 7c 2e | 20 53 61 6d 65 20 61 73 | |c[1]|.| Same as|
|00003ed0| 20 7c 73 65 74 5f 63 68 | 61 72 5f 30 7c 2c 20 65 | |set_ch|ar_0|, e|
|00003ee0| 78 63 65 70 74 20 74 68 | 61 74 20 63 68 61 72 61 |xcept th|at chara|
|00003ef0| 63 74 65 72 0a 6e 75 6d | 62 65 72 7e 7c 63 7c 20 |cter.num|ber~|c| |
|00003f00| 69 73 20 74 79 70 65 73 | 65 74 2e 20 5c 54 65 58 |is types|et. \TeX|
|00003f10| 38 32 20 75 73 65 73 20 | 74 68 69 73 20 63 6f 6d |82 uses |this com|
|00003f20| 6d 61 6e 64 20 66 6f 72 | 20 63 68 61 72 61 63 74 |mand for| charact|
|00003f30| 65 72 73 20 69 6e 20 74 | 68 65 0a 72 61 6e 67 65 |ers in t|he.range|
|00003f40| 20 7c 31 32 38 3c 3d 63 | 3c 32 35 36 7c 2e 0a 0a | |128<=c|<256|...|
|00003f50| 5c 79 73 6b 69 70 5c 68 | 61 6e 67 7c 73 65 74 32 |\yskip\h|ang|set2|
|00003f60| 7c 20 31 32 39 20 7c 63 | 5b 32 5d 7c 2e 20 53 61 || 129 |c|[2]|. Sa|
|00003f70| 6d 65 20 61 73 20 7c 73 | 65 74 31 7c 2c 20 65 78 |me as |s|et1|, ex|
|00003f80| 63 65 70 74 20 74 68 61 | 74 20 7c 63 7c 7e 69 73 |cept tha|t |c|~is|
|00003f90| 20 74 77 6f 0a 62 79 74 | 65 73 20 6c 6f 6e 67 2c | two.byt|es long,|
|00003fa0| 20 73 6f 20 69 74 20 69 | 73 20 69 6e 20 74 68 65 | so it i|s in the|
|00003fb0| 20 72 61 6e 67 65 20 7c | 30 3c 3d 63 3c 36 35 35 | range ||0<=c<655|
|00003fc0| 33 36 7c 2e 20 5c 54 65 | 58 38 32 20 6e 65 76 65 |36|. \Te|X82 neve|
|00003fd0| 72 20 75 73 65 73 20 74 | 68 69 73 0a 63 6f 6d 6d |r uses t|his.comm|
|00003fe0| 61 6e 64 2c 20 77 68 69 | 63 68 20 69 73 20 69 6e |and, whi|ch is in|
|00003ff0| 74 65 6e 64 65 64 20 66 | 6f 72 20 70 72 6f 63 65 |tended f|or proce|
|00004000| 73 73 6f 72 73 20 74 68 | 61 74 20 64 65 61 6c 20 |ssors th|at deal |
|00004010| 77 69 74 68 20 6f 72 69 | 65 6e 74 61 6c 20 6c 61 |with ori|ental la|
|00004020| 6e 67 75 61 67 65 73 3b | 0a 62 75 74 20 5c 2e 7b |nguages;|.but \.{|
|00004030| 44 56 49 74 79 70 65 7d | 20 77 69 6c 6c 20 61 6c |DVItype}| will al|
|00004040| 6c 6f 77 20 63 68 61 72 | 61 63 74 65 72 20 63 6f |low char|acter co|
|00004050| 64 65 73 20 67 72 65 61 | 74 65 72 20 74 68 61 6e |des grea|ter than|
|00004060| 20 32 35 35 2c 20 61 73 | 73 75 6d 69 6e 67 20 74 | 255, as|suming t|
|00004070| 68 61 74 0a 74 68 65 79 | 20 61 6c 6c 20 68 61 76 |hat.they| all hav|
|00004080| 65 20 74 68 65 20 73 61 | 6d 65 20 77 69 64 74 68 |e the sa|me width|
|00004090| 20 61 73 20 74 68 65 20 | 63 68 61 72 61 63 74 65 | as the |characte|
|000040a0| 72 20 77 68 6f 73 65 20 | 63 6f 64 65 20 69 73 20 |r whose |code is |
|000040b0| 24 63 20 5c 62 6d 6f 64 | 20 32 35 36 24 2e 0a 40 |$c \bmod| 256$..@|
|000040c0| 5e 6f 72 69 65 6e 74 61 | 6c 20 63 68 61 72 61 63 |^orienta|l charac|
|000040d0| 74 65 72 73 40 3e 40 5e | 43 68 69 6e 65 73 65 20 |ters@>@^|Chinese |
|000040e0| 63 68 61 72 61 63 74 65 | 72 73 40 3e 40 5e 4a 61 |characte|rs@>@^Ja|
|000040f0| 70 61 6e 65 73 65 20 63 | 68 61 72 61 63 74 65 72 |panese c|haracter|
|00004100| 73 40 3e 0a 0a 5c 79 73 | 6b 69 70 5c 68 61 6e 67 |s@>..\ys|kip\hang|
|00004110| 7c 73 65 74 33 7c 20 31 | 33 30 20 7c 63 5b 33 5d ||set3| 1|30 |c[3]|
|00004120| 7c 2e 20 53 61 6d 65 20 | 61 73 20 7c 73 65 74 31 ||. Same |as |set1|
|00004130| 7c 2c 20 65 78 63 65 70 | 74 20 74 68 61 74 20 7c ||, excep|t that ||
|00004140| 63 7c 7e 69 73 20 74 68 | 72 65 65 0a 62 79 74 65 |c|~is th|ree.byte|
|00004150| 73 20 6c 6f 6e 67 2c 20 | 73 6f 20 69 74 20 63 61 |s long, |so it ca|
|00004160| 6e 20 62 65 20 61 73 20 | 6c 61 72 67 65 20 61 73 |n be as |large as|
|00004170| 20 24 32 5e 7b 32 34 7d | 2d 31 24 2e 0a 0a 5c 79 | $2^{24}|-1$...\y|
|00004180| 73 6b 69 70 5c 68 61 6e | 67 7c 73 65 74 34 7c 20 |skip\han|g|set4| |
|00004190| 31 33 31 20 7c 63 5b 34 | 5d 7c 2e 20 53 61 6d 65 |131 |c[4|]|. Same|
|000041a0| 20 61 73 20 7c 73 65 74 | 31 7c 2c 20 65 78 63 65 | as |set|1|, exce|
|000041b0| 70 74 20 74 68 61 74 20 | 7c 63 7c 7e 69 73 20 66 |pt that ||c|~is f|
|000041c0| 6f 75 72 0a 62 79 74 65 | 73 20 6c 6f 6e 67 2c 20 |our.byte|s long, |
|000041d0| 70 6f 73 73 69 62 6c 79 | 20 65 76 65 6e 20 6e 65 |possibly| even ne|
|000041e0| 67 61 74 69 76 65 2e 20 | 49 6d 61 67 69 6e 65 20 |gative. |Imagine |
|000041f0| 74 68 61 74 2e 0a 0a 5c | 79 73 6b 69 70 5c 68 61 |that...\|yskip\ha|
|00004200| 6e 67 7c 73 65 74 5f 72 | 75 6c 65 7c 20 31 33 32 |ng|set_r|ule| 132|
|00004210| 20 7c 61 5b 34 5d 7c 20 | 7c 62 5b 34 5d 7c 2e 20 | |a[4]| ||b[4]|. |
|00004220| 54 79 70 65 73 65 74 20 | 61 20 73 6f 6c 69 64 20 |Typeset |a solid |
|00004230| 62 6c 61 63 6b 20 72 65 | 63 74 61 6e 67 6c 65 0a |black re|ctangle.|
|00004240| 6f 66 20 68 65 69 67 68 | 74 20 7c 61 7c 20 61 6e |of heigh|t |a| an|
|00004250| 64 20 77 69 64 74 68 20 | 7c 62 7c 2c 20 77 69 74 |d width ||b|, wit|
|00004260| 68 20 69 74 73 20 62 6f | 74 74 6f 6d 20 6c 65 66 |h its bo|ttom lef|
|00004270| 74 20 63 6f 72 6e 65 72 | 20 61 74 20 7c 28 68 2c |t corner| at |(h,|
|00004280| 76 29 7c 2e 20 54 68 65 | 6e 0a 73 65 74 20 7c 68 |v)|. The|n.set |h|
|00004290| 3a 3d 68 2b 62 7c 2e 20 | 49 66 20 65 69 74 68 65 |:=h+b|. |If eithe|
|000042a0| 72 20 7c 61 3c 3d 30 7c | 20 6f 72 20 7c 62 3c 3d |r |a<=0|| or |b<=|
|000042b0| 30 7c 2c 20 6e 6f 74 68 | 69 6e 67 20 73 68 6f 75 |0|, noth|ing shou|
|000042c0| 6c 64 20 62 65 20 74 79 | 70 65 73 65 74 2e 20 4e |ld be ty|peset. N|
|000042d0| 6f 74 65 0a 74 68 61 74 | 20 69 66 20 7c 62 3c 30 |ote.that| if |b<0|
|000042e0| 7c 2c 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 ||, the v|alue of |
|000042f0| 7c 68 7c 20 77 69 6c 6c | 20 64 65 63 72 65 61 73 ||h| will| decreas|
|00004300| 65 20 65 76 65 6e 20 74 | 68 6f 75 67 68 20 6e 6f |e even t|hough no|
|00004310| 74 68 69 6e 67 20 65 6c | 73 65 20 68 61 70 70 65 |thing el|se happe|
|00004320| 6e 73 2e 0a 50 72 6f 67 | 72 61 6d 73 20 74 68 61 |ns..Prog|rams tha|
|00004330| 74 20 74 79 70 65 73 65 | 74 20 66 72 6f 6d 20 5c |t typese|t from \|
|00004340| 2e 7b 44 56 49 7d 20 66 | 69 6c 65 73 20 73 68 6f |.{DVI} f|iles sho|
|00004350| 75 6c 64 20 62 65 20 63 | 61 72 65 66 75 6c 20 74 |uld be c|areful t|
|00004360| 6f 20 6d 61 6b 65 20 74 | 68 65 20 72 75 6c 65 73 |o make t|he rules|
|00004370| 0a 6c 69 6e 65 20 75 70 | 20 63 61 72 65 66 75 6c |.line up| careful|
|00004380| 6c 79 20 77 69 74 68 20 | 64 69 67 69 74 69 7a 65 |ly with |digitize|
|00004390| 64 20 63 68 61 72 61 63 | 74 65 72 73 2c 20 61 73 |d charac|ters, as|
|000043a0| 20 65 78 70 6c 61 69 6e | 65 64 20 69 6e 20 63 6f | explain|ed in co|
|000043b0| 6e 6e 65 63 74 69 6f 6e | 20 77 69 74 68 0a 74 68 |nnection| with.th|
|000043c0| 65 20 7c 72 75 6c 65 5f | 70 69 78 65 6c 73 7c 20 |e |rule_|pixels| |
|000043d0| 73 75 62 72 6f 75 74 69 | 6e 65 20 62 65 6c 6f 77 |subrouti|ne below|
|000043e0| 2e 0a 0a 5c 79 73 6b 69 | 70 5c 68 61 6e 67 7c 70 |...\yski|p\hang|p|
|000043f0| 75 74 31 7c 20 31 33 33 | 20 7c 63 5b 31 5d 7c 2e |ut1| 133| |c[1]|.|
|00004400| 20 54 79 70 65 73 65 74 | 20 63 68 61 72 61 63 74 | Typeset| charact|
|00004410| 65 72 20 6e 75 6d 62 65 | 72 7e 7c 63 7c 20 66 72 |er numbe|r~|c| fr|
|00004420| 6f 6d 20 66 6f 6e 74 7e | 7c 66 7c 0a 73 75 63 68 |om font~||f|.such|
|00004430| 20 74 68 61 74 20 74 68 | 65 20 72 65 66 65 72 65 | that th|e refere|
|00004440| 6e 63 65 20 70 6f 69 6e | 74 20 6f 66 20 74 68 65 |nce poin|t of the|
|00004450| 20 63 68 61 72 61 63 74 | 65 72 20 69 73 20 61 74 | charact|er is at|
|00004460| 20 7c 28 68 2c 76 29 7c | 2e 20 28 54 68 65 20 60 | |(h,v)||. (The `|
|00004470| 70 75 74 27 0a 63 6f 6d | 6d 61 6e 64 73 20 61 72 |put'.com|mands ar|
|00004480| 65 20 65 78 61 63 74 6c | 79 20 6c 69 6b 65 20 74 |e exactl|y like t|
|00004490| 68 65 20 60 73 65 74 27 | 20 63 6f 6d 6d 61 6e 64 |he `set'| command|
|000044a0| 73 2c 20 65 78 63 65 70 | 74 20 74 68 61 74 20 74 |s, excep|t that t|
|000044b0| 68 65 79 20 73 69 6d 70 | 6c 79 20 70 75 74 20 6f |hey simp|ly put o|
|000044c0| 75 74 20 61 0a 63 68 61 | 72 61 63 74 65 72 20 6f |ut a.cha|racter o|
|000044d0| 72 20 61 20 72 75 6c 65 | 20 77 69 74 68 6f 75 74 |r a rule| without|
|000044e0| 20 6d 6f 76 69 6e 67 20 | 74 68 65 20 72 65 66 65 | moving |the refe|
|000044f0| 72 65 6e 63 65 20 70 6f | 69 6e 74 20 61 66 74 65 |rence po|int afte|
|00004500| 72 77 61 72 64 73 2e 29 | 0a 0a 5c 79 73 6b 69 70 |rwards.)|..\yskip|
|00004510| 5c 68 61 6e 67 7c 70 75 | 74 32 7c 20 31 33 34 20 |\hang|pu|t2| 134 |
|00004520| 7c 63 5b 32 5d 7c 2e 20 | 53 61 6d 65 20 61 73 20 ||c[2]|. |Same as |
|00004530| 7c 73 65 74 32 7c 2c 20 | 65 78 63 65 70 74 20 74 ||set2|, |except t|
|00004540| 68 61 74 20 7c 68 7c 20 | 69 73 20 6e 6f 74 20 63 |hat |h| |is not c|
|00004550| 68 61 6e 67 65 64 2e 0a | 0a 5c 79 73 6b 69 70 5c |hanged..|.\yskip\|
|00004560| 68 61 6e 67 7c 70 75 74 | 33 7c 20 31 33 35 20 7c |hang|put|3| 135 ||
|00004570| 63 5b 33 5d 7c 2e 20 53 | 61 6d 65 20 61 73 20 7c |c[3]|. S|ame as ||
|00004580| 73 65 74 33 7c 2c 20 65 | 78 63 65 70 74 20 74 68 |set3|, e|xcept th|
|00004590| 61 74 20 7c 68 7c 20 69 | 73 20 6e 6f 74 20 63 68 |at |h| i|s not ch|
|000045a0| 61 6e 67 65 64 2e 0a 0a | 5c 79 73 6b 69 70 5c 68 |anged...|\yskip\h|
|000045b0| 61 6e 67 7c 70 75 74 34 | 7c 20 31 33 36 20 7c 63 |ang|put4|| 136 |c|
|000045c0| 5b 34 5d 7c 2e 20 53 61 | 6d 65 20 61 73 20 7c 73 |[4]|. Sa|me as |s|
|000045d0| 65 74 34 7c 2c 20 65 78 | 63 65 70 74 20 74 68 61 |et4|, ex|cept tha|
|000045e0| 74 20 7c 68 7c 20 69 73 | 20 6e 6f 74 20 63 68 61 |t |h| is| not cha|
|000045f0| 6e 67 65 64 2e 0a 0a 5c | 79 73 6b 69 70 5c 68 61 |nged...\|yskip\ha|
|00004600| 6e 67 7c 70 75 74 5f 72 | 75 6c 65 7c 20 31 33 37 |ng|put_r|ule| 137|
|00004610| 20 7c 61 5b 34 5d 7c 20 | 7c 62 5b 34 5d 7c 2e 20 | |a[4]| ||b[4]|. |
|00004620| 53 61 6d 65 20 61 73 20 | 7c 73 65 74 5f 72 75 6c |Same as ||set_rul|
|00004630| 65 7c 2c 20 65 78 63 65 | 70 74 20 74 68 61 74 0a |e|, exce|pt that.|
|00004640| 7c 68 7c 20 69 73 20 6e | 6f 74 20 63 68 61 6e 67 ||h| is n|ot chang|
|00004650| 65 64 2e 0a 0a 5c 79 73 | 6b 69 70 5c 68 61 6e 67 |ed...\ys|kip\hang|
|00004660| 7c 6e 6f 70 7c 20 31 33 | 38 2e 20 4e 6f 20 6f 70 ||nop| 13|8. No op|
|00004670| 65 72 61 74 69 6f 6e 2c | 20 64 6f 20 6e 6f 74 68 |eration,| do noth|
|00004680| 69 6e 67 2e 20 41 6e 79 | 20 6e 75 6d 62 65 72 20 |ing. Any| number |
|00004690| 6f 66 20 7c 6e 6f 70 7c | 27 73 0a 6d 61 79 20 6f |of |nop||'s.may o|
|000046a0| 63 63 75 72 20 62 65 74 | 77 65 65 6e 20 5c 2e 7b |ccur bet|ween \.{|
|000046b0| 44 56 49 7d 20 63 6f 6d | 6d 61 6e 64 73 2c 20 62 |DVI} com|mands, b|
|000046c0| 75 74 20 61 20 7c 6e 6f | 70 7c 20 63 61 6e 6e 6f |ut a |no|p| canno|
|000046d0| 74 20 62 65 20 69 6e 73 | 65 72 74 65 64 20 62 65 |t be ins|erted be|
|000046e0| 74 77 65 65 6e 0a 61 20 | 63 6f 6d 6d 61 6e 64 20 |tween.a |command |
|000046f0| 61 6e 64 20 69 74 73 20 | 70 61 72 61 6d 65 74 65 |and its |paramete|
|00004700| 72 73 20 6f 72 20 62 65 | 74 77 65 65 6e 20 74 77 |rs or be|tween tw|
|00004710| 6f 20 70 61 72 61 6d 65 | 74 65 72 73 2e 0a 0a 5c |o parame|ters...\|
|00004720| 79 73 6b 69 70 5c 68 61 | 6e 67 7c 62 6f 70 7c 20 |yskip\ha|ng|bop| |
|00004730| 31 33 39 20 24 63 5f 30 | 5b 34 5d 24 20 24 63 5f |139 $c_0|[4]$ $c_|
|00004740| 31 5b 34 5d 24 20 24 5c | 6c 64 6f 74 73 24 20 24 |1[4]$ $\|ldots$ $|
|00004750| 63 5f 39 5b 34 5d 24 20 | 24 70 5b 34 5d 24 2e 20 |c_9[4]$ |$p[4]$. |
|00004760| 42 65 67 69 6e 6e 69 6e | 67 0a 6f 66 20 61 20 70 |Beginnin|g.of a p|
|00004770| 61 67 65 3a 20 53 65 74 | 20 7c 28 68 2c 76 2c 77 |age: Set| |(h,v,w|
|00004780| 2c 78 2c 79 2c 7a 29 3a | 3d 28 30 2c 30 2c 30 2c |,x,y,z):|=(0,0,0,|
|00004790| 30 2c 30 2c 30 29 7c 20 | 61 6e 64 20 73 65 74 20 |0,0,0)| |and set |
|000047a0| 74 68 65 20 73 74 61 63 | 6b 20 65 6d 70 74 79 2e |the stac|k empty.|
|000047b0| 20 53 65 74 0a 74 68 65 | 20 63 75 72 72 65 6e 74 | Set.the| current|
|000047c0| 20 66 6f 6e 74 20 7c 66 | 7c 20 74 6f 20 61 6e 20 | font |f|| to an |
|000047d0| 75 6e 64 65 66 69 6e 65 | 64 20 76 61 6c 75 65 2e |undefine|d value.|
|000047e0| 20 20 54 68 65 20 74 65 | 6e 20 24 63 5f 69 24 20 | The te|n $c_i$ |
|000047f0| 70 61 72 61 6d 65 74 65 | 72 73 20 63 61 6e 0a 62 |paramete|rs can.b|
|00004800| 65 20 75 73 65 64 20 74 | 6f 20 69 64 65 6e 74 69 |e used t|o identi|
|00004810| 66 79 20 70 61 67 65 73 | 2c 20 69 66 20 61 20 75 |fy pages|, if a u|
|00004820| 73 65 72 20 77 61 6e 74 | 73 20 74 6f 20 70 72 69 |ser want|s to pri|
|00004830| 6e 74 20 6f 6e 6c 79 20 | 70 61 72 74 20 6f 66 20 |nt only |part of |
|00004840| 61 20 5c 2e 7b 44 56 49 | 7d 0a 66 69 6c 65 3b 20 |a \.{DVI|}.file; |
|00004850| 5c 54 65 58 38 32 20 67 | 69 76 65 73 20 74 68 65 |\TeX82 g|ives the|
|00004860| 6d 20 74 68 65 20 76 61 | 6c 75 65 73 20 6f 66 20 |m the va|lues of |
|00004870| 5c 2e 7b 5c 5c 63 6f 75 | 6e 74 30 7d 20 24 5c 6c |\.{\\cou|nt0} $\l|
|00004880| 64 6f 74 73 24 20 5c 2e | 7b 5c 5c 63 6f 75 6e 74 |dots$ \.|{\\count|
|00004890| 39 7d 0a 61 74 20 74 68 | 65 20 74 69 6d 65 20 5c |9}.at th|e time \|
|000048a0| 2e 7b 5c 5c 73 68 69 70 | 6f 75 74 7d 20 77 61 73 |.{\\ship|out} was|
|000048b0| 20 69 6e 76 6f 6b 65 64 | 20 66 6f 72 20 74 68 69 | invoked| for thi|
|000048c0| 73 20 70 61 67 65 2e 20 | 20 54 68 65 20 70 61 72 |s page. | The par|
|000048d0| 61 6d 65 74 65 72 20 7c | 70 7c 0a 70 6f 69 6e 74 |ameter ||p|.point|
|000048e0| 73 20 74 6f 20 74 68 65 | 20 70 72 65 76 69 6f 75 |s to the| previou|
|000048f0| 73 20 7c 62 6f 70 7c 20 | 63 6f 6d 6d 61 6e 64 20 |s |bop| |command |
|00004900| 69 6e 20 74 68 65 20 66 | 69 6c 65 2c 20 77 68 65 |in the f|ile, whe|
|00004910| 72 65 20 74 68 65 20 66 | 69 72 73 74 20 7c 62 6f |re the f|irst |bo|
|00004920| 70 7c 0a 68 61 73 20 24 | 70 3d 2d 31 24 2e 0a 0a |p|.has $|p=-1$...|
|00004930| 5c 79 73 6b 69 70 5c 68 | 61 6e 67 7c 65 6f 70 7c |\yskip\h|ang|eop||
|00004940| 20 31 34 30 2e 20 20 45 | 6e 64 20 6f 66 20 70 61 | 140. E|nd of pa|
|00004950| 67 65 3a 20 50 72 69 6e | 74 20 77 68 61 74 20 79 |ge: Prin|t what y|
|00004960| 6f 75 20 68 61 76 65 20 | 72 65 61 64 20 73 69 6e |ou have |read sin|
|00004970| 63 65 20 74 68 65 0a 70 | 72 65 76 69 6f 75 73 20 |ce the.p|revious |
|00004980| 7c 62 6f 70 7c 2e 20 41 | 74 20 74 68 69 73 20 70 ||bop|. A|t this p|
|00004990| 6f 69 6e 74 20 74 68 65 | 20 73 74 61 63 6b 20 73 |oint the| stack s|
|000049a0| 68 6f 75 6c 64 20 62 65 | 20 65 6d 70 74 79 2e 20 |hould be| empty. |
|000049b0| 28 54 68 65 20 5c 2e 7b | 44 56 49 7d 2d 72 65 61 |(The \.{|DVI}-rea|
|000049c0| 64 69 6e 67 0a 70 72 6f | 67 72 61 6d 73 20 74 68 |ding.pro|grams th|
|000049d0| 61 74 20 64 72 69 76 65 | 20 6d 6f 73 74 20 6f 75 |at drive| most ou|
|000049e0| 74 70 75 74 20 64 65 76 | 69 63 65 73 20 77 69 6c |tput dev|ices wil|
|000049f0| 6c 20 68 61 76 65 20 6b | 65 70 74 20 61 20 62 75 |l have k|ept a bu|
|00004a00| 66 66 65 72 20 6f 66 20 | 74 68 65 0a 6d 61 74 65 |ffer of |the.mate|
|00004a10| 72 69 61 6c 20 74 68 61 | 74 20 61 70 70 65 61 72 |rial tha|t appear|
|00004a20| 73 20 6f 6e 20 74 68 65 | 20 70 61 67 65 20 74 68 |s on the| page th|
|00004a30| 61 74 20 68 61 73 20 6a | 75 73 74 20 65 6e 64 65 |at has j|ust ende|
|00004a40| 64 2e 20 54 68 69 73 20 | 6d 61 74 65 72 69 61 6c |d. This |material|
|00004a50| 20 69 73 0a 6c 61 72 67 | 65 6c 79 2c 20 62 75 74 | is.larg|ely, but|
|00004a60| 20 6e 6f 74 20 65 6e 74 | 69 72 65 6c 79 2c 20 69 | not ent|irely, i|
|00004a70| 6e 20 6f 72 64 65 72 20 | 62 79 20 7c 76 7c 20 63 |n order |by |v| c|
|00004a80| 6f 6f 72 64 69 6e 61 74 | 65 20 61 6e 64 20 28 66 |oordinat|e and (f|
|00004a90| 6f 72 20 66 69 78 65 64 | 20 7c 76 7c 29 20 62 79 |or fixed| |v|) by|
|00004aa0| 0a 7c 68 7c 7e 63 6f 6f | 72 64 69 6e 61 74 65 3b |.|h|~coo|rdinate;|
|00004ab0| 20 73 6f 20 69 74 20 75 | 73 75 61 6c 6c 79 20 6e | so it u|sually n|
|00004ac0| 65 65 64 73 20 74 6f 20 | 62 65 20 73 6f 72 74 65 |eeds to |be sorte|
|00004ad0| 64 20 69 6e 74 6f 20 73 | 6f 6d 65 20 6f 72 64 65 |d into s|ome orde|
|00004ae0| 72 20 74 68 61 74 20 69 | 73 0a 61 70 70 72 6f 70 |r that i|s.approp|
|00004af0| 72 69 61 74 65 20 66 6f | 72 20 74 68 65 20 64 65 |riate fo|r the de|
|00004b00| 76 69 63 65 20 69 6e 20 | 71 75 65 73 74 69 6f 6e |vice in |question|
|00004b10| 2e 20 5c 2e 7b 44 56 49 | 74 79 70 65 7d 20 64 6f |. \.{DVI|type} do|
|00004b20| 65 73 20 6e 6f 74 20 64 | 6f 20 73 75 63 68 20 73 |es not d|o such s|
|00004b30| 6f 72 74 69 6e 67 2e 29 | 0a 0a 5c 79 73 6b 69 70 |orting.)|..\yskip|
|00004b40| 5c 68 61 6e 67 7c 70 75 | 73 68 7c 20 31 34 31 2e |\hang|pu|sh| 141.|
|00004b50| 20 50 75 73 68 20 74 68 | 65 20 63 75 72 72 65 6e | Push th|e curren|
|00004b60| 74 20 76 61 6c 75 65 73 | 20 6f 66 20 7c 28 68 2c |t values| of |(h,|
|00004b70| 76 2c 77 2c 78 2c 79 2c | 7a 29 7c 20 6f 6e 74 6f |v,w,x,y,|z)| onto|
|00004b80| 20 74 68 65 0a 74 6f 70 | 20 6f 66 20 74 68 65 20 | the.top| of the |
|00004b90| 73 74 61 63 6b 3b 20 64 | 6f 20 6e 6f 74 20 63 68 |stack; d|o not ch|
|00004ba0| 61 6e 67 65 20 61 6e 79 | 20 6f 66 20 74 68 65 73 |ange any| of thes|
|00004bb0| 65 20 76 61 6c 75 65 73 | 2e 20 4e 6f 74 65 20 74 |e values|. Note t|
|00004bc0| 68 61 74 20 7c 66 7c 20 | 69 73 0a 6e 6f 74 20 70 |hat |f| |is.not p|
|00004bd0| 75 73 68 65 64 2e 0a 0a | 5c 79 73 6b 69 70 5c 68 |ushed...|\yskip\h|
|00004be0| 61 6e 67 7c 70 6f 70 7c | 20 31 34 32 2e 20 50 6f |ang|pop|| 142. Po|
|00004bf0| 70 20 74 68 65 20 74 6f | 70 20 73 69 78 20 76 61 |p the to|p six va|
|00004c00| 6c 75 65 73 20 6f 66 66 | 20 6f 66 20 74 68 65 20 |lues off| of the |
|00004c10| 73 74 61 63 6b 20 61 6e | 64 20 61 73 73 69 67 6e |stack an|d assign|
|00004c20| 0a 74 68 65 6d 20 74 6f | 20 7c 28 68 2c 76 2c 77 |.them to| |(h,v,w|
|00004c30| 2c 78 2c 79 2c 7a 29 7c | 2e 20 54 68 65 20 6e 75 |,x,y,z)||. The nu|
|00004c40| 6d 62 65 72 20 6f 66 20 | 70 6f 70 73 20 73 68 6f |mber of |pops sho|
|00004c50| 75 6c 64 20 6e 65 76 65 | 72 20 65 78 63 65 65 64 |uld neve|r exceed|
|00004c60| 20 74 68 65 20 6e 75 6d | 62 65 72 0a 6f 66 20 70 | the num|ber.of p|
|00004c70| 75 73 68 65 73 2c 20 73 | 69 6e 63 65 20 69 74 20 |ushes, s|ince it |
|00004c80| 77 6f 75 6c 64 20 62 65 | 20 68 69 67 68 6c 79 20 |would be| highly |
|00004c90| 65 6d 62 61 72 72 61 73 | 73 69 6e 67 20 69 66 20 |embarras|sing if |
|00004ca0| 74 68 65 20 73 74 61 63 | 6b 20 77 65 72 65 20 65 |the stac|k were e|
|00004cb0| 6d 70 74 79 0a 61 74 20 | 74 68 65 20 74 69 6d 65 |mpty.at |the time|
|00004cc0| 20 6f 66 20 61 20 7c 70 | 6f 70 7c 20 63 6f 6d 6d | of a |p|op| comm|
|00004cd0| 61 6e 64 2e 0a 0a 5c 79 | 73 6b 69 70 5c 68 61 6e |and...\y|skip\han|
|00004ce0| 67 7c 72 69 67 68 74 31 | 7c 20 31 34 33 20 7c 62 |g|right1|| 143 |b|
|00004cf0| 5b 31 5d 7c 2e 20 53 65 | 74 20 7c 68 3a 3d 68 2b |[1]|. Se|t |h:=h+|
|00004d00| 62 7c 2c 20 69 2e 65 2e | 2c 20 6d 6f 76 65 20 72 |b|, i.e.|, move r|
|00004d10| 69 67 68 74 20 7c 62 7c | 20 75 6e 69 74 73 2e 0a |ight |b|| units..|
|00004d20| 54 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 69 73 |The para|meter is|
|00004d30| 20 61 20 73 69 67 6e 65 | 64 20 6e 75 6d 62 65 72 | a signe|d number|
|00004d40| 20 69 6e 20 74 77 6f 27 | 73 20 63 6f 6d 70 6c 65 | in two'|s comple|
|00004d50| 6d 65 6e 74 20 6e 6f 74 | 61 74 69 6f 6e 2c 20 7c |ment not|ation, ||
|00004d60| 2d 31 32 38 3c 3d 62 3c | 31 32 38 7c 3b 0a 69 66 |-128<=b<|128|;.if|
|00004d70| 20 7c 62 3c 30 7c 2c 20 | 74 68 65 20 72 65 66 65 | |b<0|, |the refe|
|00004d80| 72 65 6e 63 65 20 70 6f | 69 6e 74 20 61 63 74 75 |rence po|int actu|
|00004d90| 61 6c 6c 79 20 6d 6f 76 | 65 73 20 6c 65 66 74 2e |ally mov|es left.|
|00004da0| 0a 0a 5c 79 73 6b 69 70 | 5c 68 61 6e 67 7c 72 69 |..\yskip|\hang|ri|
|00004db0| 67 68 74 32 7c 20 31 34 | 34 20 7c 62 5b 32 5d 7c |ght2| 14|4 |b[2]||
|00004dc0| 2e 20 53 61 6d 65 20 61 | 73 20 7c 72 69 67 68 74 |. Same a|s |right|
|00004dd0| 31 7c 2c 20 65 78 63 65 | 70 74 20 74 68 61 74 20 |1|, exce|pt that |
|00004de0| 7c 62 7c 20 69 73 20 61 | 0a 74 77 6f 2d 62 79 74 ||b| is a|.two-byt|
|00004df0| 65 20 71 75 61 6e 74 69 | 74 79 20 69 6e 20 74 68 |e quanti|ty in th|
|00004e00| 65 20 72 61 6e 67 65 20 | 7c 2d 33 32 37 36 38 3c |e range ||-32768<|
|00004e10| 3d 62 3c 33 32 37 36 38 | 7c 2e 0a 0a 5c 79 73 6b |=b<32768||...\ysk|
|00004e20| 69 70 5c 68 61 6e 67 7c | 72 69 67 68 74 33 7c 20 |ip\hang||right3| |
|00004e30| 31 34 35 20 7c 62 5b 33 | 5d 7c 2e 20 53 61 6d 65 |145 |b[3|]|. Same|
|00004e40| 20 61 73 20 7c 72 69 67 | 68 74 31 7c 2c 20 65 78 | as |rig|ht1|, ex|
|00004e50| 63 65 70 74 20 74 68 61 | 74 20 7c 62 7c 20 69 73 |cept tha|t |b| is|
|00004e60| 20 61 0a 74 68 72 65 65 | 2d 62 79 74 65 20 71 75 | a.three|-byte qu|
|00004e70| 61 6e 74 69 74 79 20 69 | 6e 20 74 68 65 20 72 61 |antity i|n the ra|
|00004e80| 6e 67 65 20 7c 40 74 24 | 2d 32 5e 7b 32 33 7d 24 |nge |@t$|-2^{23}$|
|00004e90| 40 3e 3c 3d 62 3c 40 74 | 24 32 5e 7b 32 33 7d 24 |@><=b<@t|$2^{23}$|
|00004ea0| 40 3e 7c 2e 0a 0a 5c 79 | 73 6b 69 70 5c 68 61 6e |@>|...\y|skip\han|
|00004eb0| 67 7c 72 69 67 68 74 34 | 7c 20 31 34 36 20 7c 62 |g|right4|| 146 |b|
|00004ec0| 5b 34 5d 7c 2e 20 53 61 | 6d 65 20 61 73 20 7c 72 |[4]|. Sa|me as |r|
|00004ed0| 69 67 68 74 31 7c 2c 20 | 65 78 63 65 70 74 20 74 |ight1|, |except t|
|00004ee0| 68 61 74 20 7c 62 7c 20 | 69 73 20 61 0a 66 6f 75 |hat |b| |is a.fou|
|00004ef0| 72 2d 62 79 74 65 20 71 | 75 61 6e 74 69 74 79 20 |r-byte q|uantity |
|00004f00| 69 6e 20 74 68 65 20 72 | 61 6e 67 65 20 7c 40 74 |in the r|ange |@t|
|00004f10| 24 2d 32 5e 7b 33 31 7d | 24 40 3e 3c 3d 62 3c 40 |$-2^{31}|$@><=b<@|
|00004f20| 74 24 32 5e 7b 33 31 7d | 24 40 3e 7c 2e 0a 0a 5c |t$2^{31}|$@>|...\|
|00004f30| 79 73 6b 69 70 5c 68 61 | 6e 67 7c 77 30 7c 20 31 |yskip\ha|ng|w0| 1|
|00004f40| 34 37 2e 20 53 65 74 20 | 7c 68 3a 3d 68 2b 77 7c |47. Set ||h:=h+w||
|00004f50| 3b 20 69 2e 65 2e 2c 20 | 6d 6f 76 65 20 72 69 67 |; i.e., |move rig|
|00004f60| 68 74 20 7c 77 7c 20 75 | 6e 69 74 73 2e 20 57 69 |ht |w| u|nits. Wi|
|00004f70| 74 68 20 6c 75 63 6b 2c | 0a 74 68 69 73 20 70 61 |th luck,|.this pa|
|00004f80| 72 61 6d 65 74 65 72 6c | 65 73 73 20 63 6f 6d 6d |rameterl|ess comm|
|00004f90| 61 6e 64 20 77 69 6c 6c | 20 75 73 75 61 6c 6c 79 |and will| usually|
|00004fa0| 20 73 75 66 66 69 63 65 | 2c 20 62 65 63 61 75 73 | suffice|, becaus|
|00004fb0| 65 20 74 68 65 20 73 61 | 6d 65 20 6b 69 6e 64 20 |e the sa|me kind |
|00004fc0| 6f 66 20 6d 6f 74 69 6f | 6e 0a 77 69 6c 6c 20 6f |of motio|n.will o|
|00004fd0| 63 63 75 72 20 73 65 76 | 65 72 61 6c 20 74 69 6d |ccur sev|eral tim|
|00004fe0| 65 73 20 69 6e 20 73 75 | 63 63 65 73 73 69 6f 6e |es in su|ccession|
|00004ff0| 3b 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |; the fo|llowing |
|00005000| 63 6f 6d 6d 61 6e 64 73 | 20 65 78 70 6c 61 69 6e |commands| explain|
|00005010| 20 68 6f 77 0a 7c 77 7c | 20 67 65 74 73 20 70 61 | how.|w|| gets pa|
|00005020| 72 74 69 63 75 6c 61 72 | 20 76 61 6c 75 65 73 2e |rticular| values.|
|00005030| 0a 0a 5c 79 73 6b 69 70 | 5c 68 61 6e 67 7c 77 31 |..\yskip|\hang|w1|
|00005040| 7c 20 31 34 38 20 7c 62 | 5b 31 5d 7c 2e 20 53 65 || 148 |b|[1]|. Se|
|00005050| 74 20 7c 77 3a 3d 62 7c | 20 61 6e 64 20 7c 68 3a |t |w:=b|| and |h:|
|00005060| 3d 68 2b 62 7c 2e 20 54 | 68 65 20 76 61 6c 75 65 |=h+b|. T|he value|
|00005070| 20 6f 66 20 7c 62 7c 20 | 69 73 20 61 0a 73 69 67 | of |b| |is a.sig|
|00005080| 6e 65 64 20 71 75 61 6e | 74 69 74 79 20 69 6e 20 |ned quan|tity in |
|00005090| 74 77 6f 27 73 20 63 6f | 6d 70 6c 65 6d 65 6e 74 |two's co|mplement|
|000050a0| 20 6e 6f 74 61 74 69 6f | 6e 2c 20 7c 2d 31 32 38 | notatio|n, |-128|
|000050b0| 3c 3d 62 3c 31 32 38 7c | 2e 20 54 68 69 73 20 63 |<=b<128||. This c|
|000050c0| 6f 6d 6d 61 6e 64 0a 63 | 68 61 6e 67 65 73 20 74 |ommand.c|hanges t|
|000050d0| 68 65 20 63 75 72 72 65 | 6e 74 20 7c 77 7c 7e 73 |he curre|nt |w|~s|
|000050e0| 70 61 63 69 6e 67 20 61 | 6e 64 20 6d 6f 76 65 73 |pacing a|nd moves|
|000050f0| 20 72 69 67 68 74 20 62 | 79 20 7c 62 7c 2e 0a 0a | right b|y |b|...|
|00005100| 5c 79 73 6b 69 70 5c 68 | 61 6e 67 7c 77 32 7c 20 |\yskip\h|ang|w2| |
|00005110| 31 34 39 20 7c 62 5b 32 | 5d 7c 2e 20 53 61 6d 65 |149 |b[2|]|. Same|
|00005120| 20 61 73 20 7c 77 31 7c | 2c 20 62 75 74 20 7c 62 | as |w1||, but |b|
|00005130| 7c 20 69 73 20 61 20 74 | 77 6f 2d 62 79 74 65 2d || is a t|wo-byte-|
|00005140| 6c 6f 6e 67 0a 70 61 72 | 61 6d 65 74 65 72 2c 20 |long.par|ameter, |
|00005150| 7c 2d 33 32 37 36 38 3c | 3d 62 3c 33 32 37 36 38 ||-32768<|=b<32768|
|00005160| 7c 2e 0a 0a 5c 79 73 6b | 69 70 5c 68 61 6e 67 7c ||...\ysk|ip\hang||
|00005170| 77 33 7c 20 31 35 30 20 | 7c 62 5b 33 5d 7c 2e 20 |w3| 150 ||b[3]|. |
|00005180| 53 61 6d 65 20 61 73 20 | 7c 77 31 7c 2c 20 62 75 |Same as ||w1|, bu|
|00005190| 74 20 7c 62 7c 20 69 73 | 20 61 20 74 68 72 65 65 |t |b| is| a three|
|000051a0| 2d 62 79 74 65 2d 6c 6f | 6e 67 0a 70 61 72 61 6d |-byte-lo|ng.param|
|000051b0| 65 74 65 72 2c 20 7c 40 | 74 24 2d 32 5e 7b 32 33 |eter, |@|t$-2^{23|
|000051c0| 7d 24 40 3e 3c 3d 62 3c | 40 74 24 32 5e 7b 32 33 |}$@><=b<|@t$2^{23|
|000051d0| 7d 24 40 3e 7c 2e 0a 0a | 5c 79 73 6b 69 70 5c 68 |}$@>|...|\yskip\h|
|000051e0| 61 6e 67 7c 77 34 7c 20 | 31 35 31 20 7c 62 5b 34 |ang|w4| |151 |b[4|
|000051f0| 5d 7c 2e 20 53 61 6d 65 | 20 61 73 20 7c 77 31 7c |]|. Same| as |w1||
|00005200| 2c 20 62 75 74 20 7c 62 | 7c 20 69 73 20 61 20 66 |, but |b|| is a f|
|00005210| 6f 75 72 2d 62 79 74 65 | 2d 6c 6f 6e 67 0a 70 61 |our-byte|-long.pa|
|00005220| 72 61 6d 65 74 65 72 2c | 20 7c 40 74 24 2d 32 5e |rameter,| |@t$-2^|
|00005230| 7b 33 31 7d 24 40 3e 3c | 3d 62 3c 40 74 24 32 5e |{31}$@><|=b<@t$2^|
|00005240| 7b 33 31 7d 24 40 3e 7c | 2e 0a 0a 5c 79 73 6b 69 |{31}$@>||...\yski|
|00005250| 70 5c 68 61 6e 67 7c 78 | 30 7c 20 31 35 32 2e 20 |p\hang|x|0| 152. |
|00005260| 53 65 74 20 7c 68 3a 3d | 68 2b 78 7c 3b 20 69 2e |Set |h:=|h+x|; i.|
|00005270| 65 2e 2c 20 6d 6f 76 65 | 20 72 69 67 68 74 20 7c |e., move| right ||
|00005280| 78 7c 20 75 6e 69 74 73 | 2e 20 54 68 65 20 60 7c |x| units|. The `||
|00005290| 78 7c 27 0a 63 6f 6d 6d | 61 6e 64 73 20 61 72 65 |x|'.comm|ands are|
|000052a0| 20 6c 69 6b 65 20 74 68 | 65 20 60 7c 77 7c 27 20 | like th|e `|w|' |
|000052b0| 63 6f 6d 6d 61 6e 64 73 | 20 65 78 63 65 70 74 20 |commands| except |
|000052c0| 74 68 61 74 20 74 68 65 | 79 20 69 6e 76 6f 6c 76 |that the|y involv|
|000052d0| 65 20 7c 78 7c 20 69 6e | 73 74 65 61 64 0a 6f 66 |e |x| in|stead.of|
|000052e0| 20 7c 77 7c 2e 0a 0a 5c | 79 73 6b 69 70 5c 68 61 | |w|...\|yskip\ha|
|000052f0| 6e 67 7c 78 31 7c 20 31 | 35 33 20 7c 62 5b 31 5d |ng|x1| 1|53 |b[1]|
|00005300| 7c 2e 20 53 65 74 20 7c | 78 3a 3d 62 7c 20 61 6e ||. Set ||x:=b| an|
|00005310| 64 20 7c 68 3a 3d 68 2b | 62 7c 2e 20 54 68 65 20 |d |h:=h+|b|. The |
|00005320| 76 61 6c 75 65 20 6f 66 | 20 7c 62 7c 20 69 73 20 |value of| |b| is |
|00005330| 61 0a 73 69 67 6e 65 64 | 20 71 75 61 6e 74 69 74 |a.signed| quantit|
|00005340| 79 20 69 6e 20 74 77 6f | 27 73 20 63 6f 6d 70 6c |y in two|'s compl|
|00005350| 65 6d 65 6e 74 20 6e 6f | 74 61 74 69 6f 6e 2c 20 |ement no|tation, |
|00005360| 7c 2d 31 32 38 3c 3d 62 | 3c 31 32 38 7c 2e 20 54 ||-128<=b|<128|. T|
|00005370| 68 69 73 20 63 6f 6d 6d | 61 6e 64 0a 63 68 61 6e |his comm|and.chan|
|00005380| 67 65 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ges the |current |
|00005390| 7c 78 7c 7e 73 70 61 63 | 69 6e 67 20 61 6e 64 20 ||x|~spac|ing and |
|000053a0| 6d 6f 76 65 73 20 72 69 | 67 68 74 20 62 79 20 7c |moves ri|ght by ||
|000053b0| 62 7c 2e 0a 0a 5c 79 73 | 6b 69 70 5c 68 61 6e 67 |b|...\ys|kip\hang|
|000053c0| 7c 78 32 7c 20 31 35 34 | 20 7c 62 5b 32 5d 7c 2e ||x2| 154| |b[2]|.|
|000053d0| 20 53 61 6d 65 20 61 73 | 20 7c 78 31 7c 2c 20 62 | Same as| |x1|, b|
|000053e0| 75 74 20 7c 62 7c 20 69 | 73 20 61 20 74 77 6f 2d |ut |b| i|s a two-|
|000053f0| 62 79 74 65 2d 6c 6f 6e | 67 0a 70 61 72 61 6d 65 |byte-lon|g.parame|
|00005400| 74 65 72 2c 20 7c 2d 33 | 32 37 36 38 3c 3d 62 3c |ter, |-3|2768<=b<|
|00005410| 33 32 37 36 38 7c 2e 0a | 0a 5c 79 73 6b 69 70 5c |32768|..|.\yskip\|
|00005420| 68 61 6e 67 7c 78 33 7c | 20 31 35 35 20 7c 62 5b |hang|x3|| 155 |b[|
|00005430| 33 5d 7c 2e 20 53 61 6d | 65 20 61 73 20 7c 78 31 |3]|. Sam|e as |x1|
|00005440| 7c 2c 20 62 75 74 20 7c | 62 7c 20 69 73 20 61 20 ||, but ||b| is a |
|00005450| 74 68 72 65 65 2d 62 79 | 74 65 2d 6c 6f 6e 67 0a |three-by|te-long.|
|00005460| 70 61 72 61 6d 65 74 65 | 72 2c 20 7c 40 74 24 2d |paramete|r, |@t$-|
|00005470| 32 5e 7b 32 33 7d 24 40 | 3e 3c 3d 62 3c 40 74 24 |2^{23}$@|><=b<@t$|
|00005480| 32 5e 7b 32 33 7d 24 40 | 3e 7c 2e 0a 0a 5c 79 73 |2^{23}$@|>|...\ys|
|00005490| 6b 69 70 5c 68 61 6e 67 | 7c 78 34 7c 20 31 35 36 |kip\hang||x4| 156|
|000054a0| 20 7c 62 5b 34 5d 7c 2e | 20 53 61 6d 65 20 61 73 | |b[4]|.| Same as|
|000054b0| 20 7c 78 31 7c 2c 20 62 | 75 74 20 7c 62 7c 20 69 | |x1|, b|ut |b| i|
|000054c0| 73 20 61 20 66 6f 75 72 | 2d 62 79 74 65 2d 6c 6f |s a four|-byte-lo|
|000054d0| 6e 67 0a 70 61 72 61 6d | 65 74 65 72 2c 20 7c 40 |ng.param|eter, |@|
|000054e0| 74 24 2d 32 5e 7b 33 31 | 7d 24 40 3e 3c 3d 62 3c |t$-2^{31|}$@><=b<|
|000054f0| 40 74 24 32 5e 7b 33 31 | 7d 24 40 3e 7c 2e 0a 0a |@t$2^{31|}$@>|...|
|00005500| 5c 79 73 6b 69 70 5c 68 | 61 6e 67 7c 64 6f 77 6e |\yskip\h|ang|down|
|00005510| 31 7c 20 31 35 37 20 7c | 61 5b 31 5d 7c 2e 20 53 |1| 157 ||a[1]|. S|
|00005520| 65 74 20 7c 76 3a 3d 76 | 2b 61 7c 2c 20 69 2e 65 |et |v:=v|+a|, i.e|
|00005530| 2e 2c 20 6d 6f 76 65 20 | 64 6f 77 6e 20 7c 61 7c |., move |down |a||
|00005540| 20 75 6e 69 74 73 2e 0a | 54 68 65 20 70 61 72 61 | units..|The para|
|00005550| 6d 65 74 65 72 20 69 73 | 20 61 20 73 69 67 6e 65 |meter is| a signe|
|00005560| 64 20 6e 75 6d 62 65 72 | 20 69 6e 20 74 77 6f 27 |d number| in two'|
|00005570| 73 20 63 6f 6d 70 6c 65 | 6d 65 6e 74 20 6e 6f 74 |s comple|ment not|
|00005580| 61 74 69 6f 6e 2c 20 7c | 2d 31 32 38 3c 3d 61 3c |ation, ||-128<=a<|
|00005590| 31 32 38 7c 3b 0a 69 66 | 20 7c 61 3c 30 7c 2c 20 |128|;.if| |a<0|, |
|000055a0| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |the refe|rence po|
|000055b0| 69 6e 74 20 61 63 74 75 | 61 6c 6c 79 20 6d 6f 76 |int actu|ally mov|
|000055c0| 65 73 20 75 70 2e 0a 0a | 5c 79 73 6b 69 70 5c 68 |es up...|\yskip\h|
|000055d0| 61 6e 67 7c 64 6f 77 6e | 32 7c 20 31 35 38 20 7c |ang|down|2| 158 ||
|000055e0| 61 5b 32 5d 7c 2e 20 53 | 61 6d 65 20 61 73 20 7c |a[2]|. S|ame as ||
|000055f0| 64 6f 77 6e 31 7c 2c 20 | 65 78 63 65 70 74 20 74 |down1|, |except t|
|00005600| 68 61 74 20 7c 61 7c 20 | 69 73 20 61 0a 74 77 6f |hat |a| |is a.two|
|00005610| 2d 62 79 74 65 20 71 75 | 61 6e 74 69 74 79 20 69 |-byte qu|antity i|
|00005620| 6e 20 74 68 65 20 72 61 | 6e 67 65 20 7c 2d 33 32 |n the ra|nge |-32|
|00005630| 37 36 38 3c 3d 61 3c 33 | 32 37 36 38 7c 2e 0a 0a |768<=a<3|2768|...|
|00005640| 5c 79 73 6b 69 70 5c 68 | 61 6e 67 7c 64 6f 77 6e |\yskip\h|ang|down|
|00005650| 33 7c 20 31 35 39 20 7c | 61 5b 33 5d 7c 2e 20 53 |3| 159 ||a[3]|. S|
|00005660| 61 6d 65 20 61 73 20 7c | 64 6f 77 6e 31 7c 2c 20 |ame as ||down1|, |
|00005670| 65 78 63 65 70 74 20 74 | 68 61 74 20 7c 61 7c 20 |except t|hat |a| |
|00005680| 69 73 20 61 0a 74 68 72 | 65 65 2d 62 79 74 65 20 |is a.thr|ee-byte |
|00005690| 71 75 61 6e 74 69 74 79 | 20 69 6e 20 74 68 65 20 |quantity| in the |
|000056a0| 72 61 6e 67 65 20 7c 40 | 74 24 2d 32 5e 7b 32 33 |range |@|t$-2^{23|
|000056b0| 7d 24 40 3e 3c 3d 61 3c | 40 74 24 32 5e 7b 32 33 |}$@><=a<|@t$2^{23|
|000056c0| 7d 24 40 3e 7c 2e 0a 0a | 5c 79 73 6b 69 70 5c 68 |}$@>|...|\yskip\h|
|000056d0| 61 6e 67 7c 64 6f 77 6e | 34 7c 20 31 36 30 20 7c |ang|down|4| 160 ||
|000056e0| 61 5b 34 5d 7c 2e 20 53 | 61 6d 65 20 61 73 20 7c |a[4]|. S|ame as ||
|000056f0| 64 6f 77 6e 31 7c 2c 20 | 65 78 63 65 70 74 20 74 |down1|, |except t|
|00005700| 68 61 74 20 7c 61 7c 20 | 69 73 20 61 0a 66 6f 75 |hat |a| |is a.fou|
|00005710| 72 2d 62 79 74 65 20 71 | 75 61 6e 74 69 74 79 20 |r-byte q|uantity |
|00005720| 69 6e 20 74 68 65 20 72 | 61 6e 67 65 20 7c 40 74 |in the r|ange |@t|
|00005730| 24 2d 32 5e 7b 33 31 7d | 24 40 3e 3c 3d 61 3c 40 |$-2^{31}|$@><=a<@|
|00005740| 74 24 32 5e 7b 33 31 7d | 24 40 3e 7c 2e 0a 0a 5c |t$2^{31}|$@>|...\|
|00005750| 79 73 6b 69 70 5c 68 61 | 6e 67 7c 79 30 7c 20 31 |yskip\ha|ng|y0| 1|
|00005760| 36 31 2e 20 53 65 74 20 | 7c 76 3a 3d 76 2b 79 7c |61. Set ||v:=v+y||
|00005770| 3b 20 69 2e 65 2e 2c 20 | 6d 6f 76 65 20 64 6f 77 |; i.e., |move dow|
|00005780| 6e 20 7c 79 7c 20 75 6e | 69 74 73 2e 20 57 69 74 |n |y| un|its. Wit|
|00005790| 68 20 6c 75 63 6b 2c 0a | 74 68 69 73 20 70 61 72 |h luck,.|this par|
|000057a0| 61 6d 65 74 65 72 6c 65 | 73 73 20 63 6f 6d 6d 61 |ameterle|ss comma|
|000057b0| 6e 64 20 77 69 6c 6c 20 | 75 73 75 61 6c 6c 79 20 |nd will |usually |
|000057c0| 73 75 66 66 69 63 65 2c | 20 62 65 63 61 75 73 65 |suffice,| because|
|000057d0| 20 74 68 65 20 73 61 6d | 65 20 6b 69 6e 64 20 6f | the sam|e kind o|
|000057e0| 66 20 6d 6f 74 69 6f 6e | 0a 77 69 6c 6c 20 6f 63 |f motion|.will oc|
|000057f0| 63 75 72 20 73 65 76 65 | 72 61 6c 20 74 69 6d 65 |cur seve|ral time|
|00005800| 73 20 69 6e 20 73 75 63 | 63 65 73 73 69 6f 6e 3b |s in suc|cession;|
|00005810| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | the fol|lowing c|
|00005820| 6f 6d 6d 61 6e 64 73 20 | 65 78 70 6c 61 69 6e 20 |ommands |explain |
|00005830| 68 6f 77 0a 7c 79 7c 20 | 67 65 74 73 20 70 61 72 |how.|y| |gets par|
|00005840| 74 69 63 75 6c 61 72 20 | 76 61 6c 75 65 73 2e 0a |ticular |values..|
|00005850| 0a 5c 79 73 6b 69 70 5c | 68 61 6e 67 7c 79 31 7c |.\yskip\|hang|y1||
|00005860| 20 31 36 32 20 7c 61 5b | 31 5d 7c 2e 20 53 65 74 | 162 |a[|1]|. Set|
|00005870| 20 7c 79 3a 3d 61 7c 20 | 61 6e 64 20 7c 76 3a 3d | |y:=a| |and |v:=|
|00005880| 76 2b 61 7c 2e 20 54 68 | 65 20 76 61 6c 75 65 20 |v+a|. Th|e value |
|00005890| 6f 66 20 7c 61 7c 20 69 | 73 20 61 0a 73 69 67 6e |of |a| i|s a.sign|
|000058a0| 65 64 20 71 75 61 6e 74 | 69 74 79 20 69 6e 20 74 |ed quant|ity in t|
|000058b0| 77 6f 27 73 20 63 6f 6d | 70 6c 65 6d 65 6e 74 20 |wo's com|plement |
|000058c0| 6e 6f 74 61 74 69 6f 6e | 2c 20 7c 2d 31 32 38 3c |notation|, |-128<|
|000058d0| 3d 61 3c 31 32 38 7c 2e | 20 54 68 69 73 20 63 6f |=a<128|.| This co|
|000058e0| 6d 6d 61 6e 64 0a 63 68 | 61 6e 67 65 73 20 74 68 |mmand.ch|anges th|
|000058f0| 65 20 63 75 72 72 65 6e | 74 20 7c 79 7c 7e 73 70 |e curren|t |y|~sp|
|00005900| 61 63 69 6e 67 20 61 6e | 64 20 6d 6f 76 65 73 20 |acing an|d moves |
|00005910| 64 6f 77 6e 20 62 79 20 | 7c 61 7c 2e 0a 0a 5c 79 |down by ||a|...\y|
|00005920| 73 6b 69 70 5c 68 61 6e | 67 7c 79 32 7c 20 31 36 |skip\han|g|y2| 16|
|00005930| 33 20 7c 61 5b 32 5d 7c | 2e 20 53 61 6d 65 20 61 |3 |a[2]||. Same a|
|00005940| 73 20 7c 79 31 7c 2c 20 | 62 75 74 20 7c 61 7c 20 |s |y1|, |but |a| |
|00005950| 69 73 20 61 20 74 77 6f | 2d 62 79 74 65 2d 6c 6f |is a two|-byte-lo|
|00005960| 6e 67 0a 70 61 72 61 6d | 65 74 65 72 2c 20 7c 2d |ng.param|eter, |-|
|00005970| 33 32 37 36 38 3c 3d 61 | 3c 33 32 37 36 38 7c 2e |32768<=a|<32768|.|
|00005980| 0a 0a 5c 79 73 6b 69 70 | 5c 68 61 6e 67 7c 79 33 |..\yskip|\hang|y3|
|00005990| 7c 20 31 36 34 20 7c 61 | 5b 33 5d 7c 2e 20 53 61 || 164 |a|[3]|. Sa|
|000059a0| 6d 65 20 61 73 20 7c 79 | 31 7c 2c 20 62 75 74 20 |me as |y|1|, but |
|000059b0| 7c 61 7c 20 69 73 20 61 | 20 74 68 72 65 65 2d 62 ||a| is a| three-b|
|000059c0| 79 74 65 2d 6c 6f 6e 67 | 0a 70 61 72 61 6d 65 74 |yte-long|.paramet|
|000059d0| 65 72 2c 20 7c 40 74 24 | 2d 32 5e 7b 32 33 7d 24 |er, |@t$|-2^{23}$|
|000059e0| 40 3e 3c 3d 61 3c 40 74 | 24 32 5e 7b 32 33 7d 24 |@><=a<@t|$2^{23}$|
|000059f0| 40 3e 7c 2e 0a 0a 5c 79 | 73 6b 69 70 5c 68 61 6e |@>|...\y|skip\han|
|00005a00| 67 7c 79 34 7c 20 31 36 | 35 20 7c 61 5b 34 5d 7c |g|y4| 16|5 |a[4]||
|00005a10| 2e 20 53 61 6d 65 20 61 | 73 20 7c 79 31 7c 2c 20 |. Same a|s |y1|, |
|00005a20| 62 75 74 20 7c 61 7c 20 | 69 73 20 61 20 66 6f 75 |but |a| |is a fou|
|00005a30| 72 2d 62 79 74 65 2d 6c | 6f 6e 67 0a 70 61 72 61 |r-byte-l|ong.para|
|00005a40| 6d 65 74 65 72 2c 20 7c | 40 74 24 2d 32 5e 7b 33 |meter, ||@t$-2^{3|
|00005a50| 31 7d 24 40 3e 3c 3d 61 | 3c 40 74 24 32 5e 7b 33 |1}$@><=a|<@t$2^{3|
|00005a60| 31 7d 24 40 3e 7c 2e 0a | 0a 5c 79 73 6b 69 70 5c |1}$@>|..|.\yskip\|
|00005a70| 68 61 6e 67 7c 7a 30 7c | 20 31 36 36 2e 20 53 65 |hang|z0|| 166. Se|
|00005a80| 74 20 7c 76 3a 3d 76 2b | 7a 7c 3b 20 69 2e 65 2e |t |v:=v+|z|; i.e.|
|00005a90| 2c 20 6d 6f 76 65 20 64 | 6f 77 6e 20 7c 7a 7c 20 |, move d|own |z| |
|00005aa0| 75 6e 69 74 73 2e 20 54 | 68 65 20 60 7c 7a 7c 27 |units. T|he `|z|'|
|00005ab0| 20 63 6f 6d 6d 61 6e 64 | 73 0a 61 72 65 20 6c 69 | command|s.are li|
|00005ac0| 6b 65 20 74 68 65 20 60 | 7c 79 7c 27 20 63 6f 6d |ke the `||y|' com|
|00005ad0| 6d 61 6e 64 73 20 65 78 | 63 65 70 74 20 74 68 61 |mands ex|cept tha|
|00005ae0| 74 20 74 68 65 79 20 69 | 6e 76 6f 6c 76 65 20 7c |t they i|nvolve ||
|00005af0| 7a 7c 20 69 6e 73 74 65 | 61 64 20 6f 66 20 7c 79 |z| inste|ad of |y|
|00005b00| 7c 2e 0a 0a 5c 79 73 6b | 69 70 5c 68 61 6e 67 7c ||...\ysk|ip\hang||
|00005b10| 7a 31 7c 20 31 36 37 20 | 7c 61 5b 31 5d 7c 2e 20 |z1| 167 ||a[1]|. |
|00005b20| 53 65 74 20 7c 7a 3a 3d | 61 7c 20 61 6e 64 20 7c |Set |z:=|a| and ||
|00005b30| 76 3a 3d 76 2b 61 7c 2e | 20 54 68 65 20 76 61 6c |v:=v+a|.| The val|
|00005b40| 75 65 20 6f 66 20 7c 61 | 7c 20 69 73 20 61 0a 73 |ue of |a|| is a.s|
|00005b50| 69 67 6e 65 64 20 71 75 | 61 6e 74 69 74 79 20 69 |igned qu|antity i|
|00005b60| 6e 20 74 77 6f 27 73 20 | 63 6f 6d 70 6c 65 6d 65 |n two's |compleme|
|00005b70| 6e 74 20 6e 6f 74 61 74 | 69 6f 6e 2c 20 7c 2d 31 |nt notat|ion, |-1|
|00005b80| 32 38 3c 3d 61 3c 31 32 | 38 7c 2e 20 54 68 69 73 |28<=a<12|8|. This|
|00005b90| 20 63 6f 6d 6d 61 6e 64 | 0a 63 68 61 6e 67 65 73 | command|.changes|
|00005ba0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 7c 7a 7c | the cur|rent |z||
|00005bb0| 7e 73 70 61 63 69 6e 67 | 20 61 6e 64 20 6d 6f 76 |~spacing| and mov|
|00005bc0| 65 73 20 64 6f 77 6e 20 | 62 79 20 7c 61 7c 2e 0a |es down |by |a|..|
|00005bd0| 0a 5c 79 73 6b 69 70 5c | 68 61 6e 67 7c 7a 32 7c |.\yskip\|hang|z2||
|00005be0| 20 31 36 38 20 7c 61 5b | 32 5d 7c 2e 20 53 61 6d | 168 |a[|2]|. Sam|
|00005bf0| 65 20 61 73 20 7c 7a 31 | 7c 2c 20 62 75 74 20 7c |e as |z1||, but ||
|00005c00| 61 7c 20 69 73 20 61 20 | 74 77 6f 2d 62 79 74 65 |a| is a |two-byte|
|00005c10| 2d 6c 6f 6e 67 0a 70 61 | 72 61 6d 65 74 65 72 2c |-long.pa|rameter,|
|00005c20| 20 7c 2d 33 32 37 36 38 | 3c 3d 61 3c 33 32 37 36 | |-32768|<=a<3276|
|00005c30| 38 7c 2e 0a 0a 5c 79 73 | 6b 69 70 5c 68 61 6e 67 |8|...\ys|kip\hang|
|00005c40| 7c 7a 33 7c 20 31 36 39 | 20 7c 61 5b 33 5d 7c 2e ||z3| 169| |a[3]|.|
|00005c50| 20 53 61 6d 65 20 61 73 | 20 7c 7a 31 7c 2c 20 62 | Same as| |z1|, b|
|00005c60| 75 74 20 7c 61 7c 20 69 | 73 20 61 20 74 68 72 65 |ut |a| i|s a thre|
|00005c70| 65 2d 62 79 74 65 2d 6c | 6f 6e 67 0a 70 61 72 61 |e-byte-l|ong.para|
|00005c80| 6d 65 74 65 72 2c 20 7c | 40 74 24 2d 32 5e 7b 32 |meter, ||@t$-2^{2|
|00005c90| 33 7d 24 40 3e 3c 3d 61 | 3c 40 74 24 32 5e 7b 32 |3}$@><=a|<@t$2^{2|
|00005ca0| 33 7d 24 40 3e 7c 2e 0a | 0a 5c 79 73 6b 69 70 5c |3}$@>|..|.\yskip\|
|00005cb0| 68 61 6e 67 7c 7a 34 7c | 20 31 37 30 20 7c 61 5b |hang|z4|| 170 |a[|
|00005cc0| 34 5d 7c 2e 20 53 61 6d | 65 20 61 73 20 7c 7a 31 |4]|. Sam|e as |z1|
|00005cd0| 7c 2c 20 62 75 74 20 7c | 61 7c 20 69 73 20 61 20 ||, but ||a| is a |
|00005ce0| 66 6f 75 72 2d 62 79 74 | 65 2d 6c 6f 6e 67 0a 70 |four-byt|e-long.p|
|00005cf0| 61 72 61 6d 65 74 65 72 | 2c 20 7c 40 74 24 2d 32 |arameter|, |@t$-2|
|00005d00| 5e 7b 33 31 7d 24 40 3e | 3c 3d 61 3c 40 74 24 32 |^{31}$@>|<=a<@t$2|
|00005d10| 5e 7b 33 31 7d 24 40 3e | 7c 2e 0a 0a 5c 79 73 6b |^{31}$@>||...\ysk|
|00005d20| 69 70 5c 68 61 6e 67 7c | 66 6e 74 5f 6e 75 6d 5f |ip\hang||fnt_num_|
|00005d30| 30 7c 20 31 37 31 2e 20 | 53 65 74 20 7c 66 3a 3d |0| 171. |Set |f:=|
|00005d40| 30 7c 2e 20 46 6f 6e 74 | 20 30 20 6d 75 73 74 20 |0|. Font| 0 must |
|00005d50| 70 72 65 76 69 6f 75 73 | 6c 79 20 68 61 76 65 20 |previous|ly have |
|00005d60| 62 65 65 6e 0a 64 65 66 | 69 6e 65 64 20 62 79 20 |been.def|ined by |
|00005d70| 61 20 5c 5c 7b 66 6e 74 | 5c 5f 64 65 66 7d 20 69 |a \\{fnt|\_def} i|
|00005d80| 6e 73 74 72 75 63 74 69 | 6f 6e 2c 20 61 73 20 65 |nstructi|on, as e|
|00005d90| 78 70 6c 61 69 6e 65 64 | 20 62 65 6c 6f 77 2e 0a |xplained| below..|
|00005da0| 0a 5c 79 73 6b 69 70 5c | 68 61 6e 67 7c 66 6e 74 |.\yskip\|hang|fnt|
|00005db0| 5f 6e 75 6d 5f 31 7c 20 | 74 68 72 6f 75 67 68 20 |_num_1| |through |
|00005dc0| 7c 66 6e 74 5f 6e 75 6d | 5f 36 33 7c 20 28 6f 70 ||fnt_num|_63| (op|
|00005dd0| 63 6f 64 65 73 20 31 37 | 32 20 74 6f 20 32 33 34 |codes 17|2 to 234|
|00005de0| 29 2e 20 53 65 74 0a 7c | 66 3a 3d 31 7c 2c 20 5c |). Set.||f:=1|, \|
|00005df0| 64 6f 74 73 2c 20 7c 66 | 3a 3d 36 33 7c 2c 20 72 |dots, |f|:=63|, r|
|00005e00| 65 73 70 65 63 74 69 76 | 65 6c 79 2e 0a 0a 5c 79 |espectiv|ely...\y|
|00005e10| 73 6b 69 70 5c 68 61 6e | 67 7c 66 6e 74 31 7c 20 |skip\han|g|fnt1| |
|00005e20| 32 33 35 20 7c 6b 5b 31 | 5d 7c 2e 20 53 65 74 20 |235 |k[1|]|. Set |
|00005e30| 7c 66 3a 3d 6b 7c 2e 20 | 5c 54 65 58 38 32 20 75 ||f:=k|. |\TeX82 u|
|00005e40| 73 65 73 20 74 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |ses this| command|
|00005e50| 20 66 6f 72 20 66 6f 6e | 74 0a 6e 75 6d 62 65 72 | for fon|t.number|
|00005e60| 73 20 69 6e 20 74 68 65 | 20 72 61 6e 67 65 20 7c |s in the| range ||
|00005e70| 36 34 3c 3d 6b 3c 32 35 | 36 7c 2e 0a 0a 5c 79 73 |64<=k<25|6|...\ys|
|00005e80| 6b 69 70 5c 68 61 6e 67 | 7c 66 6e 74 32 7c 20 32 |kip\hang||fnt2| 2|
|00005e90| 33 36 20 7c 6b 5b 32 5d | 7c 2e 20 53 61 6d 65 20 |36 |k[2]||. Same |
|00005ea0| 61 73 20 7c 66 6e 74 31 | 7c 2c 20 65 78 63 65 70 |as |fnt1||, excep|
|00005eb0| 74 20 74 68 61 74 20 7c | 6b 7c 7e 69 73 20 74 77 |t that ||k|~is tw|
|00005ec0| 6f 0a 62 79 74 65 73 20 | 6c 6f 6e 67 2c 20 73 6f |o.bytes |long, so|
|00005ed0| 20 69 74 20 69 73 20 69 | 6e 20 74 68 65 20 72 61 | it is i|n the ra|
|00005ee0| 6e 67 65 20 7c 30 3c 3d | 6b 3c 36 35 35 33 36 7c |nge |0<=|k<65536||
|00005ef0| 2e 20 5c 54 65 58 38 32 | 20 6e 65 76 65 72 20 67 |. \TeX82| never g|
|00005f00| 65 6e 65 72 61 74 65 73 | 20 74 68 69 73 0a 63 6f |enerates| this.co|
|00005f10| 6d 6d 61 6e 64 2c 20 62 | 75 74 20 6c 61 72 67 65 |mmand, b|ut large|
|00005f20| 20 66 6f 6e 74 20 6e 75 | 6d 62 65 72 73 20 6d 61 | font nu|mbers ma|
|00005f30| 79 20 70 72 6f 76 65 20 | 75 73 65 66 75 6c 20 66 |y prove |useful f|
|00005f40| 6f 72 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |or speci|fication|
|00005f50| 73 20 6f 66 0a 63 6f 6c | 6f 72 20 6f 72 20 74 65 |s of.col|or or te|
|00005f60| 78 74 75 72 65 2c 20 6f | 72 20 74 68 65 79 20 6d |xture, o|r they m|
|00005f70| 61 79 20 62 65 20 75 73 | 65 64 20 66 6f 72 20 73 |ay be us|ed for s|
|00005f80| 70 65 63 69 61 6c 20 66 | 6f 6e 74 73 20 74 68 61 |pecial f|onts tha|
|00005f90| 74 20 68 61 76 65 20 66 | 69 78 65 64 0a 6e 75 6d |t have f|ixed.num|
|00005fa0| 62 65 72 73 20 69 6e 20 | 73 6f 6d 65 20 65 78 74 |bers in |some ext|
|00005fb0| 65 72 6e 61 6c 20 63 6f | 64 69 6e 67 20 73 63 68 |ernal co|ding sch|
|00005fc0| 65 6d 65 2e 0a 0a 5c 79 | 73 6b 69 70 5c 68 61 6e |eme...\y|skip\han|
|00005fd0| 67 7c 66 6e 74 33 7c 20 | 32 33 37 20 7c 6b 5b 33 |g|fnt3| |237 |k[3|
|00005fe0| 5d 7c 2e 20 53 61 6d 65 | 20 61 73 20 7c 66 6e 74 |]|. Same| as |fnt|
|00005ff0| 31 7c 2c 20 65 78 63 65 | 70 74 20 74 68 61 74 20 |1|, exce|pt that |
|00006000| 7c 6b 7c 7e 69 73 20 74 | 68 72 65 65 0a 62 79 74 ||k|~is t|hree.byt|
|00006010| 65 73 20 6c 6f 6e 67 2c | 20 73 6f 20 69 74 20 63 |es long,| so it c|
|00006020| 61 6e 20 62 65 20 61 73 | 20 6c 61 72 67 65 20 61 |an be as| large a|
|00006030| 73 20 24 32 5e 7b 32 34 | 7d 2d 31 24 2e 0a 0a 5c |s $2^{24|}-1$...\|
|00006040| 79 73 6b 69 70 5c 68 61 | 6e 67 7c 66 6e 74 34 7c |yskip\ha|ng|fnt4||
|00006050| 20 32 33 38 20 7c 6b 5b | 34 5d 7c 2e 20 53 61 6d | 238 |k[|4]|. Sam|
|00006060| 65 20 61 73 20 7c 66 6e | 74 31 7c 2c 20 65 78 63 |e as |fn|t1|, exc|
|00006070| 65 70 74 20 74 68 61 74 | 20 7c 6b 7c 7e 69 73 20 |ept that| |k|~is |
|00006080| 66 6f 75 72 0a 62 79 74 | 65 73 20 6c 6f 6e 67 3b |four.byt|es long;|
|00006090| 20 74 68 69 73 20 69 73 | 20 66 6f 72 20 74 68 65 | this is| for the|
|000060a0| 20 72 65 61 6c 6c 79 20 | 62 69 67 20 66 6f 6e 74 | really |big font|
|000060b0| 20 6e 75 6d 62 65 72 73 | 20 28 61 6e 64 20 66 6f | numbers| (and fo|
|000060c0| 72 20 74 68 65 20 6e 65 | 67 61 74 69 76 65 20 6f |r the ne|gative o|
|000060d0| 6e 65 73 29 2e 0a 0a 5c | 79 73 6b 69 70 5c 68 61 |nes)...\|yskip\ha|
|000060e0| 6e 67 7c 78 78 78 31 7c | 20 32 33 39 20 7c 6b 5b |ng|xxx1|| 239 |k[|
|000060f0| 31 5d 7c 20 7c 78 5b 6b | 5d 7c 2e 20 54 68 69 73 |1]| |x[k|]|. This|
|00006100| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 75 6e 64 65 | command| is unde|
|00006110| 66 69 6e 65 64 20 69 6e | 0a 67 65 6e 65 72 61 6c |fined in|.general|
|00006120| 3b 20 69 74 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |; it fun|ctions a|
|00006130| 73 20 61 20 24 28 6b 2b | 32 29 24 2d 62 79 74 65 |s a $(k+|2)$-byte|
|00006140| 20 7c 6e 6f 70 7c 20 75 | 6e 6c 65 73 73 20 73 70 | |nop| u|nless sp|
|00006150| 65 63 69 61 6c 20 5c 2e | 7b 44 56 49 7d 2d 72 65 |ecial \.|{DVI}-re|
|00006160| 61 64 69 6e 67 0a 70 72 | 6f 67 72 61 6d 73 20 61 |ading.pr|ograms a|
|00006170| 72 65 20 62 65 69 6e 67 | 20 75 73 65 64 2e 20 5c |re being| used. \|
|00006180| 54 65 58 38 32 20 67 65 | 6e 65 72 61 74 65 73 20 |TeX82 ge|nerates |
|00006190| 7c 78 78 78 31 7c 20 77 | 68 65 6e 20 61 20 73 68 ||xxx1| w|hen a sh|
|000061a0| 6f 72 74 20 65 6e 6f 75 | 67 68 0a 5c 2e 7b 5c 5c |ort enou|gh.\.{\\|
|000061b0| 73 70 65 63 69 61 6c 7d | 20 61 70 70 65 61 72 73 |special}| appears|
|000061c0| 2c 20 73 65 74 74 69 6e | 67 20 7c 6b 7c 20 74 6f |, settin|g |k| to|
|000061d0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 62 | the num|ber of b|
|000061e0| 79 74 65 73 20 62 65 69 | 6e 67 20 73 65 6e 74 2e |ytes bei|ng sent.|
|000061f0| 20 49 74 0a 69 73 20 72 | 65 63 6f 6d 6d 65 6e 64 | It.is r|ecommend|
|00006200| 65 64 20 74 68 61 74 20 | 7c 78 7c 20 62 65 20 61 |ed that ||x| be a|
|00006210| 20 73 74 72 69 6e 67 20 | 68 61 76 69 6e 67 20 74 | string |having t|
|00006220| 68 65 20 66 6f 72 6d 20 | 6f 66 20 61 20 6b 65 79 |he form |of a key|
|00006230| 77 6f 72 64 20 66 6f 6c | 6c 6f 77 65 64 0a 62 79 |word fol|lowed.by|
|00006240| 20 70 6f 73 73 69 62 6c | 65 20 70 61 72 61 6d 65 | possibl|e parame|
|00006250| 74 65 72 73 20 72 65 6c | 65 76 61 6e 74 20 74 6f |ters rel|evant to|
|00006260| 20 74 68 61 74 20 6b 65 | 79 77 6f 72 64 2e 0a 0a | that ke|yword...|
|00006270| 5c 79 73 6b 69 70 5c 68 | 61 6e 67 7c 78 78 78 32 |\yskip\h|ang|xxx2|
|00006280| 7c 20 32 34 30 20 7c 6b | 5b 32 5d 7c 20 7c 78 5b || 240 |k|[2]| |x[|
|00006290| 6b 5d 7c 2e 20 4c 69 6b | 65 20 7c 78 78 78 31 7c |k]|. Lik|e |xxx1||
|000062a0| 2c 20 62 75 74 20 7c 30 | 3c 3d 6b 3c 36 35 35 33 |, but |0|<=k<6553|
|000062b0| 36 7c 2e 0a 0a 5c 79 73 | 6b 69 70 5c 68 61 6e 67 |6|...\ys|kip\hang|
|000062c0| 7c 78 78 78 33 7c 20 32 | 34 31 20 7c 6b 5b 33 5d ||xxx3| 2|41 |k[3]|
|000062d0| 7c 20 7c 78 5b 6b 5d 7c | 2e 20 4c 69 6b 65 20 7c || |x[k]||. Like ||
|000062e0| 78 78 78 31 7c 2c 20 62 | 75 74 20 7c 30 3c 3d 6b |xxx1|, b|ut |0<=k|
|000062f0| 3c 40 74 24 32 5e 7b 32 | 34 7d 24 40 3e 7c 2e 0a |<@t$2^{2|4}$@>|..|
|00006300| 0a 5c 79 73 6b 69 70 5c | 68 61 6e 67 7c 78 78 78 |.\yskip\|hang|xxx|
|00006310| 34 7c 20 32 34 32 20 7c | 6b 5b 34 5d 7c 20 7c 78 |4| 242 ||k[4]| |x|
|00006320| 5b 6b 5d 7c 2e 20 4c 69 | 6b 65 20 7c 78 78 78 31 |[k]|. Li|ke |xxx1|
|00006330| 7c 2c 20 62 75 74 20 7c | 6b 7c 20 63 61 6e 20 62 ||, but ||k| can b|
|00006340| 65 20 72 69 64 69 63 75 | 6c 6f 75 73 6c 79 0a 6c |e ridicu|lously.l|
|00006350| 61 72 67 65 2e 20 5c 54 | 65 58 38 32 20 75 73 65 |arge. \T|eX82 use|
|00006360| 73 20 7c 78 78 78 34 7c | 20 77 68 65 6e 20 7c 78 |s |xxx4|| when |x|
|00006370| 78 78 31 7c 20 77 6f 75 | 6c 64 20 62 65 20 69 6e |xx1| wou|ld be in|
|00006380| 63 6f 72 72 65 63 74 2e | 0a 0a 5c 79 73 6b 69 70 |correct.|..\yskip|
|00006390| 5c 68 61 6e 67 7c 66 6e | 74 5f 64 65 66 31 7c 20 |\hang|fn|t_def1| |
|000063a0| 32 34 33 20 7c 6b 5b 31 | 5d 7c 20 7c 63 5b 34 5d |243 |k[1|]| |c[4]|
|000063b0| 7c 20 7c 73 5b 34 5d 7c | 20 7c 64 5b 34 5d 7c 20 || |s[4]|| |d[4]| |
|000063c0| 7c 61 5b 31 5d 7c 20 7c | 6c 5b 31 5d 7c 20 7c 6e ||a[1]| ||l[1]| |n|
|000063d0| 5b 61 2b 6c 5d 7c 2e 0a | 44 65 66 69 6e 65 20 66 |[a+l]|..|Define f|
|000063e0| 6f 6e 74 20 7c 6b 7c 2c | 20 77 68 65 72 65 20 7c |ont |k|,| where ||
|000063f0| 30 3c 3d 6b 3c 32 35 36 | 7c 3b 20 66 6f 6e 74 20 |0<=k<256||; font |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.